@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0b2545;       /* Deep academic navy */
    --primary-light: #134074;      /* Lighter blue for headers/borders */
    --accent-color: #d4af37;       /* Gold color for borders/badges */
    --accent-hover: #bfa030;       /* Darker gold for buttons */
    --bg-color: #f4f6f9;           /* Light grey-blue canvas */
    --card-bg: #ffffff;
    --text-main: #1e293b;          /* Charcoal text */
    --text-muted: #64748b;         /* Soft grey text */
    --success-green: #10b981;      /* Verified emerald green */
    --error-red: #ef4444;          /* Failed verify red */
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Outfit', sans-serif;
    --transition-speed: 0.25s;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 20px -3px rgba(11,37,69,0.08), 0 4px 6px -2px rgba(11,37,69,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(11,37,69,0.1), 0 10px 10px -5px rgba(11,37,69,0.04);
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

/* Header & Banner Styles */
.univ-header {
    background-color: var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    padding: 20px 0;
    color: #ffffff;
}

.univ-logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.univ-logo-img:hover {
    transform: scale(1.03);
}

.univ-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.portal-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Content Container Card */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.verify-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.verify-card:hover {
    box-shadow: 0 25px 35px -5px rgba(11,37,69,0.12);
}

.card-accent-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(19, 64, 116, 0.15);
}

/* Custom Buttons */
.btn-verify {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #ffffff;
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all var(--transition-speed) ease;
}

.btn-verify:hover, .btn-verify:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: #ffffff;
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all var(--transition-speed) ease;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Verification Result Table and Details */
.student-photo-frame {
    width: 150px;
    height: 180px;
    border: 3px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
    box-shadow: var(--shadow-sm);
    margin: 0 auto 15px auto;
}

.student-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-table th {
    width: 35%;
    font-family: var(--heading-font);
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}

.details-table td {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

/* Badges & Alerts */
.badge-verified {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-result {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
}

.badge-result.pass {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-result.fail {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.verification-status-banner {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.verification-status-banner.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 5px solid var(--success-green);
    color: #065f46;
}

.verification-status-banner.fail {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 5px solid var(--error-red);
    color: #991b1b;
}

/* Footer styling */
.univ-footer {
    background-color: var(--primary-color);
    color: #a0aec0;
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 3px solid var(--accent-color);
}

/* Admin Styling */
.admin-sidebar {
    background-color: var(--primary-color);
    min-height: 100vh;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.admin-sidebar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all var(--transition-speed) ease;
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
}

.admin-sidebar .sidebar-heading {
    padding: 1.5rem 1rem;
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-top-nav {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 15px 30px;
}

.dashboard-stat-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease;
    overflow: hidden;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
}

.dashboard-stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Upload Previews */
.upload-preview {
    max-height: 100px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
    display: block;
}

/* Mobile Responsiveness Extra Rules */
@media (max-width: 768px) {
    .univ-header {
        text-align: center;
    }
    .univ-logo-img {
        margin-bottom: 15px;
    }
    .admin-sidebar {
        min-height: auto;
    }
    .details-table th, .details-table td {
        display: block;
        width: 100%;
    }
    .details-table th {
        border-bottom: none;
        padding-top: 10px;
        padding-bottom: 0;
    }
    .details-table td {
        padding-top: 2px;
        padding-bottom: 10px;
    }
}
