/* Custom Styling for Student Registration Verification System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --accent-color: #2563eb;
    --bg-slate: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Branding */
.navbar-brand-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.brand-logo {
    height: 65px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.brand-logo-login {
    height: 90px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hero & Card Styles */
.hero-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 3.5rem 1rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.search-box-card {
    margin-top: 1rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Verification Badge */
.verified-badge {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.grade-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Verification Result Details Grid */
.detail-item {
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

/* Admin Dashboard Elements */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-custom {
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.table-custom td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Login Page Styling */
.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Print Certificate View */
@media print {
    body * {
        visibility: hidden;
    }

    #resultCard,
    #resultCard * {
        visibility: visible;
    }

    #resultCard {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
        border: 2px solid #000 !important;
    }

    .no-print {
        display: none !important;
    }
}

/* Sidebar Layout for Admin Panel */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 270px;
    background: #0f172a;
    color: #94a3b8;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
}

.sidebar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    padding: 1.25rem 0.85rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
    padding: 0.75rem 0.85rem 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.98);
}

.admin-main-content {
    margin-left: 270px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-slate);
    transition: margin-left 0.3s ease;
}

.admin-top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main-content {
        margin-left: 0;
    }
}

/* User Panel Additional Utilities */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.12) !important;
}

.hover-primary:hover {
    color: #3b82f6 !important;
    transition: color 0.2s ease;
}

.text-primary-custom {
    color: #3b82f6 !important;
}

.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }

.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.tracking-wider { letter-spacing: 0.08em; }

/* Responsive Overflow Fixes for Select Dropdowns & Cards */
.input-group {
    max-width: 100%;
    min-width: 0;
}

.form-select,
.form-control {
    max-width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
}

.form-select option {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 576px) {
    .form-select {
        font-size: 0.85rem;
    }
    .input-group-text {
        padding: 0.375rem 0.6rem;
    }
}