:root {
    /* Deep, premium purple matching the new logo */
    --primary-purple: #3A2359;
    --secondary-purple: #5A3A82;
    --light-purple: #F4F0F9;
    --text-dark: #2D1A42;
    --text-light: #6B5B7D;
    --white: #FFFFFF;
    --gold-accent: #D4AF37;
    --sidebar-width: 320px;
}

/* --- Responsive Typography Scaling --- */
html {
    font-size: 16px;
}

@media (max-width: 850px) {
    html {
        font-size: 14.5px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-purple);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.main-header {
    background-color: var(--white);
    border-top: 4px solid var(--primary-purple);
    border-bottom: 1px solid #E5E0EA;
    box-shadow: 0 4px 15px rgba(58, 35, 89, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Top bar: quick-menu icon LEFT | date RIGHT ── */
.header-topbar {
    background: #f8f6fb;
    border-bottom: 1px solid #eee;
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-light);
    position: relative;
    z-index: 10;
}

.ht-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.ht-date i { color: var(--primary-purple); font-size: 0.9rem; }

/* Quick Menu — adjusted layout button */
.quick-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    z-index: 2100;
}

.quick-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    max-width: 260px;
    height: auto;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 3px 10px rgba(58, 35, 89, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quick-menu-btn i { font-size: 1.2rem; }
.quick-menu-btn:hover {
    background: var(--secondary-purple);
    box-shadow: 0 5px 14px rgba(58, 35, 89, 0.35);
    transform: scale(1.07);
}
.quick-menu-btn:active { transform: scale(0.97); }

.quick-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: var(--white);
    border: 1px solid #E5E0EA;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 35, 89, 0.15);
    min-width: 240px;
    max-width: min(320px, calc(100vw - 24px));
    width: max-content;
    z-index: 2000;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.quick-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qm-section-label {
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    padding: 7px 16px 3px;
}
.qm-divider { height: 1px; background: #F0EBF6; margin: 5px 0; }

.qm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.qm-item i { font-size: 1rem; color: var(--secondary-purple); flex-shrink: 0; width: 18px; }
.qm-item:hover { background: var(--light-purple); color: var(--primary-purple); }
.qm-item:hover i { color: var(--primary-purple); }

/* ── Brand row: logo | title | founder — perfectly centered ── */
.header-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 12px 30px;
    width: 100%;
    box-sizing: border-box;
}

.brand-logo,
.brand-founder {
    height: 95px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.brand-logo { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06)); }
.brand-founder {
    box-shadow: 0 3px 9px rgba(0,0,0,0.08);
    border: 1.5px solid var(--light-purple);
}
.brand-logo:hover, .brand-founder:hover { transform: scale(1.03); }

.brand-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.brand-motto {
    font-size: 0.82rem;
    color: var(--primary-purple);
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}
.brand-trust {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(120deg, var(--primary-purple), #2A1542);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-status {
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 500;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    padding: 3px 14px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(58,35,89,0.2);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    width: 100%;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.mobile-toggle:hover { background: var(--secondary-purple); }
.mobile-toggle i { font-size: 1.1rem; }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 90;
    backdrop-filter: blur(2px);
}

.logo {
    max-height: 97.5px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 3px 4.5px rgba(0, 0, 0, 0.05));
}

.logo:hover {
    transform: scale(1.02);
}

/* Main header row for all pages */
.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-left-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.header-right-content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 180px;
}

/* Center: Titles & Text */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
    min-width: 220px;
}

.sanskrit-motto {
    font-size: 0.862rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 4.5px;
    letter-spacing: 0.375px;
    position: relative;
    display: inline-block;
}

.trust-name {
    font-size: 0.788rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.375px;
}

.university-name {
    font-size: 1.95rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.375px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.02);
    background: linear-gradient(120deg, var(--primary-purple), #2A1542);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.university-status {
    font-size: 0.712rem;
    color: var(--white);
    font-weight: 500;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    padding: 3.75px 12px;
    border-radius: 18.75px;
    display: inline-block;
    box-shadow: 0 2.25px 6px rgba(58, 35, 89, 0.2);
    letter-spacing: 0.225px;
}

/* Right Side: Founder Photo + Quick Menu */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.founder-photo {
    max-height: 97.5px;
    width: auto;
    border-radius: 4.5px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
    border: 1.5px solid var(--light-purple);
    transition: transform 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 4.5px 11.25px rgba(58, 35, 89, 0.15);
}

/* Quick Menu Styles */
.quick-menu-wrap {
    position: relative;
    display: inline-block;
}

.quick-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 35, 89, 0.25);
    white-space: nowrap;
}

.quick-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58, 35, 89, 0.35);
    background: linear-gradient(135deg, #2A1542, #4A2A72);
}

.quick-menu-btn:active {
    transform: translateY(0);
}

.quick-menu-btn i {
    font-size: 1.1rem;
}

.quick-menu-btn .qm-caret {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.quick-menu-btn[aria-expanded="true"] .qm-caret {
    transform: rotate(180deg);
}

.quick-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    border: 1px solid #E5E0EA;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(58, 35, 89, 0.15);
    min-width: 240px;
    z-index: 2000;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.quick-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qm-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    padding: 8px 16px 4px;
}

.qm-divider {
    height: 1px;
    background: #F0EBF6;
    margin: 6px 0;
}

.qm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.qm-item i {
    font-size: 1.1rem;
    color: var(--secondary-purple);
    flex-shrink: 0;
    width: 20px;
}

.qm-item:hover {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding-left: 20px;
}

.qm-item:hover i {
    color: var(--primary-purple);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: var(--primary-purple);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 10px 20px 15px 20px;
    width: calc(100% - 40px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--secondary-purple);
    transform: translateY(-1px);
}

.mobile-toggle i {
    font-size: 1.2rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(2px);
}

/* Decorative Background Elements */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 50%, rgba(90, 58, 130, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 50%, rgba(90, 58, 130, 0.03) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   SIDEBAR & APP LAYOUT
   ============================================ */

.app-container {
    display: flex;
    flex: 1;
    background-color: var(--light-purple);
    overflow: hidden;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white);
    border-right: 1px solid #E5E0EA;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 1.5px 0 11.25px rgba(58, 35, 89, 0.05);
    z-index: 10;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 35px 25px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #E5E0EA;
    margin-bottom: 10px;
}

.sidebar-logo .logo {
    max-width: 160px;
    height: auto;
}

.sidebar-nav {
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-purple) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--secondary-purple);
    border-radius: 10px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 35px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 15px;
    border-right: 3px solid transparent;
}

.nav-item i {
    font-size: 1.013rem;
    color: var(--secondary-purple);
    transition: color 0.3s ease;
}

.nav-item .info-icon {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.6;
    cursor: help;
    transition: opacity 0.3s ease;
}

.nav-item:hover .info-icon {
    opacity: 1;
}

.nav-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-purple);
}

.nav-item.active {
    background-color: rgba(90, 58, 130, 0.06);
    color: var(--primary-purple);
    border-right-color: var(--primary-purple);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary-purple);
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid #E5E0EA;
    flex-shrink: 0;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.logout {
    color: #D32F2F;
}

.logout i {
    color: #D32F2F;
}

.logout:hover {
    background-color: #FFEBEE;
    color: #C62828;
}

/* Sidebar Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #E5E0EA;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-profile:hover {
    background-color: var(--light-purple);
}

.sidebar-profile .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.25px solid var(--primary-purple);
    box-shadow: 0 3px 7.5px rgba(58, 35, 89, 0.15);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.profile-role {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.sidebar-profile .profile-info-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light-purple);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sidebar-profile .profile-info-icon i {
    font-size: 0.9rem;
    color: var(--secondary-purple);
    transition: color 0.3s ease;
}

.sidebar-profile .profile-info-icon:hover {
    background: var(--secondary-purple);
}

.sidebar-profile .profile-info-icon:hover i {
    color: white;
}

/* Tooltip Styles */
.profile-tooltip {
    position: absolute;
    bottom: 50%;
    left: calc(100% + 15px);
    transform: translateY(50%);
    background: white;
    box-shadow: 0 5px 25px rgba(58, 35, 89, 0.15);
    border: 1px solid #E5E0EA;
    border-radius: 8px;
    padding: 12px;
    width: 200px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.profile-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: white;
}

.profile-info-icon:hover .profile-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-purple);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.tooltip-label {
    color: var(--text-light);
    font-weight: 500;
}

.tooltip-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 22.5px 30px;
    background-color: var(--light-purple);
    overflow-y: auto;
    height: 100%;
}

.page-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(58, 35, 89, 0.05);
    min-height: calc(100vh - 200px);
    padding: 25px;
    border-top: 3px solid var(--primary-purple);
}

/* Top Navbar */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E0EA;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-purple);
    border-radius: 25px;
    padding: 8px 16px;
    width: 260px;
    max-width: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-bar:focus-within {
    border-color: var(--primary-purple);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(90, 58, 130, 0.1);
}

.search-bar i {
    color: var(--text-light);
    font-size: 1rem;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.user-profile:hover {
    background-color: var(--light-purple);
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-purple);
}

.user-profile .profile-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.user-profile i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.navbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--light-purple), #f5f0fa);
    border-bottom: 2px solid #E5E0EA;
}

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-purple);
}

.admin-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.admin-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background-color: rgba(58, 35, 89, 0.02);
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved,
.status-admitted {
    background: #d4edda;
    color: #155724;
}

.status-rejected,
.status-not-admitted {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 5px;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-edit {
    color: #007bff;
    margin-right: 8px;
}

.btn-edit:hover {
    background: rgba(0, 123, 255, 0.1);
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: rgba(220, 53, 69, 0.1);
}

.text-center {
    text-align: center !important;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px;
    margin-top: 10px;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pagination-controls {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid #E5E0EA;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background: var(--light-purple);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.page-item.active .page-link {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.page-link i {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .header-top-bar,
    .header-main-content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .university-name {
        font-size: 1.5rem;
    }
    
    .logo,
    .founder-photo {
        max-height: 75px;
    }
}

@media (max-width: 850px) {
    body {
        height: auto;
        overflow: auto;
    }
    
    .header-top-bar {
        display: none;
    }
    
    .header-main-content {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .header-center {
        min-width: auto;
    }
    
    .university-name {
        font-size: 1rem;
    }
    
    .sanskrit-motto,
    .trust-name {
        font-size: 0.65rem;
    }
    
    .university-status {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
    
    .logo,
    .founder-photo {
        max-height: 55px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .quick-menu-btn span {
        display: none;
    }
    
    .quick-menu-btn {
        padding: 8px 12px;
    }
    
    .app-container {
        flex-direction: column;
        overflow: visible;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -340px;
        width: 300px;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    body.sidebar-open .sidebar {
        left: 0;
    }
    
    body.sidebar-open .mobile-overlay {
        display: block;
    }
    
    .main-content {
        padding: 20px;
        overflow: visible;
        height: auto;
    }
    
    .page-content {
        min-height: auto;
        padding: 20px;
    }
    
    .nav-item {
        padding: 12px 25px;
    }
    
    .sidebar-footer {
        position: static;
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .header-main-content {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .university-name {
        font-size: 0.75rem;
    }
    
    .sanskrit-motto,
    .trust-name {
        font-size: 0.5rem;
    }
    
    .university-status {
        font-size: 0.45rem;
        padding: 2px 6px;
    }
    
    .logo,
    .founder-photo {
        max-height: 40px;
    }
    
    .mobile-toggle {
        padding: 10px 16px;
        margin: 8px 15px 12px 15px;
        width: calc(100% - 30px);
        font-size: 0.85rem;
    }
    
    .top-navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .navbar-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .sidebar,
    .mobile-toggle,
    .quick-menu-wrap,
    .top-navbar {
        display: none;
    }
    
    .app-container {
        margin: 0;
        padding: 0;
    }
    
    .main-content {
        padding: 0;
    }
    
    .page-content {
        box-shadow: none;
        border: none;
    }
}
.logo,
.founder-photo {
    max-height: 80px;  /* optional smaller */
    margin: 0;
}