/* GLOBAL RESETS - Applied to all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   background: linear-gradient(135deg, #f4eaf0 0%, #f5e3ea 50%, #f6dce4 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #667eea;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== LOGIN PAGE ONLY - MODERN COMPACT DESIGN ===== */

body.login-page {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #2d3a5e 100%);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Modern abstract background pattern */
body.login-page::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 12px);
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 5 L55 30 L30 55 L5 30 L30 5" stroke="rgba(59,130,246,0.02)" fill="none" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 0;
}

/* Lock scrolling on mobile */
@media screen and (max-width: 768px) {
    body.login-page {
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #2d3a5e 100%);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 360px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

/* Allow internal scrolling in container on mobile */
@media screen and (max-width: 768px) {
    .login-container {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 10px;
    }
    
    .login-container::-webkit-scrollbar {
        display: none;
    }
}

.login-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.5);
}

/* Logo Container Styles - Compact */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.institution-logo {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 12px;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.1);
    background: white;
    padding: 3px;
}

.institution-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -8px #3b82f6;
    border-color: #3b82f6;
}

.institution-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d3f67;
    margin: 5px 0 3px;
    letter-spacing: -0.3px;
}

.institution-tagline {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(59, 130, 246, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.institution-tagline i {
    color: #3b82f6;
    font-size: 0.7rem;
}

.login-container h1 {
    display: none;
}

.login-container .form-group {
    margin-bottom: 15px;
    position: relative;
}

.login-container label {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.login-container .form-group:hover label {
    color: #3b82f6;
    transform: translateX(3px);
}

.login-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-container .input-wrapper i {
    position: absolute;
    left: 12px;
    color: #4a4b75;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.login-container .input-wrapper .toggle-password {
    left: auto;
    right: 12px;
    cursor: pointer;
    pointer-events: all;
    z-index: 2;
    font-size: 16px;
}

.login-container .input-wrapper .toggle-password:hover {
    color: #3b82f6;
}

.login-container input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    background: #f8fafc;
}

.login-container input:hover {
    border-color: #3b82f6;
    background: #ffffff;
}

.login-container input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    padding-left: 40px;
}

.login-container input:focus + i {
    color: #3b82f6;
}

.login-container input::placeholder {
    color: #94a3b8;
    font-size: 12px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 16px -6px rgba(59, 130, 246, 0.4);
}

.login-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.login-container button:hover::before {
    left: 100%;
}

.login-container button:active {
    transform: translateY(0);
}

.login-container .forgot-link {
    text-align: center;
    margin-bottom: 10px;
}

.login-container .forgot-link a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-container .forgot-link a i {
    font-size: 11px;
}

.login-container .forgot-link a:hover {
    color: #3b82f6;
    gap: 6px;
}

.login-container .error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    border-left: 4px solid #dc2626;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.login-container .error i {
    font-size: 14px;
    color: #dc2626;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container .register-link {
    text-align: center;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.login-container .register-link a {
    color: #3b82f6;
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-container .register-link a i {
    font-size: 10px;
}

.login-container .register-link a:hover {
    color: #2563eb;
    gap: 6px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    body.login-page {
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        background: linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #2d3a5e 100%);
    }
    
    .login-container {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 15px;
    }
    
    .login-container::-webkit-scrollbar {
        display: none;
    }
    
    .login-container:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .institution-logo {
        max-width: 70px;
        max-height: 70px;
    }
    
    .institution-name {
        font-size: 1.2rem;
    }
    
    .institution-tagline {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 18px;
    }
    
    .institution-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .institution-name {
        font-size: 1.1rem;
    }
    
    .login-container input {
        padding: 10px 10px 10px 35px;
        font-size: 12px;
    }
    
    .login-container button {
        padding: 10px;
        font-size: 13px;
    }
}

/* Handle very short heights */
@media screen and (max-height: 600px) and (max-width: 768px) {
    .login-container {
        padding: 12px 15px;
        margin: 8px;
    }
    
    .institution-logo {
        max-width: 70px;
        max-height: 70px;
        margin-bottom: 4px;
    }
    
    .institution-name {
        font-size: 1rem;
        margin: 2px 0;
    }
    
    .institution-tagline {
        margin-bottom: 8px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .logo-container {
        margin-bottom: 8px;
    }
    
    .login-container .form-group {
        margin-bottom: 10px;
    }
    
    .login-container input {
        padding: 8px 8px 8px 32px;
    }
    
    .login-container button {
        padding: 8px;
        margin: 8px 0 5px;
        font-size: 12px;
    }
    
    .login-container .error {
        padding: 6px 10px;
        margin-bottom: 10px;
        font-size: 11px;
    }
}

@media screen and (max-height: 480px) and (max-width: 768px) {
    .login-container {
        padding: 8px 12px;
    }
    
    .institution-logo {
        max-width: 70px;
        max-height: 70px;
        border-width: 1px;
    }
    
    .institution-name {
        font-size: 0.9rem;
    }
    
    .institution-tagline {
        display: none;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    .login-container .form-group {
        margin-bottom: 6px;
    }
    
    .login-container label {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .login-container input {
        padding: 6px 6px 6px 28px;
        font-size: 11px;
        border-width: 1px;
    }
    
    .login-container .input-wrapper i {
        font-size: 12px;
        left: 8px;
    }
    
    .login-container .input-wrapper .toggle-password {
        right: 8px;
        font-size: 14px;
    }
    
    .login-container button {
        padding: 6px;
        font-size: 11px;
        margin: 5px 0 3px;
        border-radius: 8px;
    }
    
    .login-container .forgot-link {
        margin-bottom: 5px;
    }
    
    .login-container .forgot-link a {
        font-size: 10px;
    }
    
    .login-container .register-link {
        margin-top: 5px;
        padding-top: 5px;
        font-size: 9px;
    }
}

/* ====HEADER AND SIDEBAR STYLES============== */


/* ---- Main Header ---- */
.main-header {
    background: linear-gradient(135deg, #fffefb 0%, #fffbf5 100%);
    box-shadow: 0 2px 16px rgba(15, 23, 70, 0.08), 0 1px 4px rgba(15, 23, 70, 0.05);
    padding: 0 30px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeffa;
}

/* ---- Logo ---- */
.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: #1a2248;
   font-family: 'Manrope', sans-serif;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.header-left .logo i {
    color: #5b72e8;
    font-size: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Sidebar Toggle Button ---- */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    color: #7a8aaa;
    font-size: 18px;
    order: 3;
}

.sidebar-toggle:hover {
    background: #eef2ff;
    color: #5b72e8;
    transform: scale(1.08);
}

/* ---- Modern Notifications with Glass Morphism ---- */
.notices {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5580;
    cursor: pointer;
    position: relative;
    padding: 8px 14px;
    border-radius: 40px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Nunito', sans-serif;
    order: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 114, 232, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* Animated gradient background on hover */
.notices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #5b72e8, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 40px;
}

.notices:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px -8px rgba(91, 114, 232, 0.4);
}

.notices:hover::before {
    opacity: 1;
}

/* Bell icon with animation */
.notices i {
    font-size: 20px;
    transition: all 0.25s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.notices:hover i {
    transform: rotate(8deg) scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(255, 255, 255, 0.3));
}

/* Badge with pulse animation */
.notices .badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    position: absolute;
    top: 2px;
    right: 6px;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
    font-family: 'Nunito', sans-serif;
    line-height: 1;
    border: 1.5px solid white;
    animation: pulseBadge 2s infinite;
    z-index: 2;
}

/* Badge pulse animation */
@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(220, 38, 38, 0.6);
    }
}

/* Notification text */
.notices-text {
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: -0.2px;
}

/* Bell shake animation for new notifications */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-3deg); }
}

.notices.has-new i {
    animation: bellShake 1s ease infinite;
}

.notices.has-new .badge {
    background: linear-gradient(135deg, #f97316, #dc2626);
    animation: pulseBadge 1s infinite;
}

/* Modern dropdown for notifications (if you have one) */
.notices-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 70, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(91, 114, 232, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.notices-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notices-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(91, 114, 232, 0.1);
}

.notices-dropdown-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.notices-dropdown-header span {
    background: linear-gradient(135deg, #5b72e8, #8b5cf6);
    color: white;
    padding: 3px 8px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}

.notices-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.notices-list::-webkit-scrollbar {
    width: 4px;
}

.notices-list::-webkit-scrollbar-track {
    background: transparent;
}

.notices-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.notice-item:hover {
    background: rgba(91, 114, 232, 0.08);
    transform: translateX(3px);
}

.notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 114, 232, 0.1), rgba(139, 92, 246, 0.1));
    color: #5b72e8;
    font-size: 16px;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-family: 'Nunito', sans-serif;
}

.notice-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-item.unread {
    background: rgba(91, 114, 232, 0.05);
    position: relative;
}

.notice-item.unread::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(135deg, #5b72e8, #8b5cf6);
    border-radius: 3px;
}

.notices-dropdown-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(91, 114, 232, 0.1);
    text-align: center;
}

.notices-dropdown-footer a {
    color: #5b72e8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(91, 114, 232, 0.05);
}

.notices-dropdown-footer a:hover {
    background: #5b72e8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(91, 114, 232, 0.3);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .notices {
        padding: 7px 12px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .notices i {
        font-size: 18px;
    }
    
    .notices-text {
        font-size: 13px;
    }
    
    .notices .badge {
        top: 1px;
        right: 3px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .notices-dropdown {
        width: 280px;
        right: -20px;
    }
}

/* ---- User Menu ---- */
.user-menu {
    position: relative;
    order: 2;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 7px 11px;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.user-icon:hover {
    background: #eef2ff;
    border-color: #dce6ff;
    transform: translateY(-1px);
}

.user-icon i:first-child {
    font-size: 27px;
    color: #7a8aaa;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e2a50;
    font-family: 'Nunito', sans-serif;
}

.user-icon i:last-child {
    font-size: 11px;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.user-icon:hover i:last-child {
    transform: rotate(180deg);
}

/* ---- User Dropdown ---- */
.user-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 16px 48px rgba(15, 23, 70, 0.14), 0 4px 12px rgba(15, 23, 70, 0.07);
    width: 248px;
    display: none;
    z-index: 1001;
    border: 1px solid #eaeffa;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
    border-bottom: 1px solid #eef2fb;
}

.user-info i {
    font-size: 36px;
    color: #7a8aaa;
}

.user-info div {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: #1a2248;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.2px;
}

.user-info small {
    color: #7a8aaa;
    font-size: 12px;
    text-transform: capitalize;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-top: 1px;
}

.dropdown-divider {
    height: 1px;
    background: #eef2fb;
    margin: 4px 0;
}

.dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3a4672;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f5f7ff, #eef2ff);
    color: #5b72e8;
    padding-left: 22px;
    text-decoration: none; /* ADDED THIS LINE - removes underline on hover */
}

.dropdown-item i {
    width: 18px;
    font-size: 15px;
    color: #7a8aaa;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #5b72e8;
}

/* ---- Sidebar ---- */
.main-sidebar {
    position: fixed;
    left: 0;
    top: 62px;
    bottom: 0;
    width: 250px;
    background: #ffffff;
    box-shadow: 2px 0 16px rgba(15, 23, 70, 0.07), 1px 0 4px rgba(15, 23, 70, 0.04);
    z-index: 999;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eaeffa;
}

.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2fb;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2248;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
}

.sidebar-header i {
    color: #5b72e8;
    font-size: 17px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dce6fb transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #dce6fb;
    border-radius: 4px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #4a5580;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.22s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.sidebar-nav li a i {
    width: 18px;
    font-size: 15px;
    color: #696da5;
    transition: color 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.sidebar-nav li:hover a {
    background: linear-gradient(135deg, #f5f7ff, #eef2ff);
    color: #5b72e8;
    padding-left: 18px;
}

.sidebar-nav li:hover a i {
    color: #5b72e8;
    transform: scale(1.1);
}

.sidebar-nav li.active a {
    background: linear-gradient(135deg, #eef2ff, #e4ebff);
    color: #5b72e8;
    border-left-color: #5b72e8;
    font-weight: 700;
}

.sidebar-nav li.active a i {
    color: #5b72e8;
}

/* ---- Sidebar Footer ---- */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid #eef2fb;
    background: linear-gradient(135deg, #fafcff 0%, #f5f8ff 100%);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e11d48;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
}

.sidebar-footer a:hover {
    padding-left: 18px;
    background: #fff1f2;
    color: #be123c;
}

.sidebar-footer a i {
    font-size: 15px;
    color: #e11d48;
    transition: color 0.2s ease;
}

.sidebar-footer a:hover i {
    color: #be123c;
}

/* ---- Main Content ---- */
.main-content {
    margin-left: 250px;
    margin-top: 62px;
    padding: 28px 30px;
    min-height: calc(100vh - 62px);
   background: linear-gradient(135deg, #efeaf4 0%, #fffafd 50%, #fffbfe 100%);
}

/* ---- Dashboard Page Header ---- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.dashboard-header h1 {
    font-size: 20px;
    color: #364074;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 800;
    margin: 0;
}

.dashboard-header h1 i {
    font-size: 21px;
    color: #3557a5;
}

.dashboard-header .date {
    background: #ffffff !important;
    padding: 8px 16px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(15, 23, 70, 0.06), 0 1px 3px rgba(15, 23, 70, 0.04);
    color: #534f74;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
    font-weight: 600;
    border: 1px solid #eaeffa;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dashboard-header .date:hover {
    box-shadow: 0 4px 14px rgba(91, 114, 232, 0.12);
    border-color: #d6e0fb;
    color: #5b72e8;
}

/* ========== MOBILE RESPONSIVE ========== */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 56px;
    }

    .main-content {
        margin-top: 56px;
        padding: 18px 16px;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .header-right {
        gap: 4px;
    }

    .main-sidebar {
        position: fixed;
        left: 0;
        top: 56px;
        bottom: 0;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        box-shadow: 4px 0 24px rgba(15, 23, 70, 0.14);
    }

    .main-sidebar.show {
        transform: translateX(0);
    }

    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 70, 0.45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1001;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* Notices - hide text on mobile */
    .notices .notices-text {
        display: none;
    }

    .notices {
        padding: 7px 9px;
    }

    .notices i {
        font-size: 18px;
    }

    .notices .badge {
        top: 1px;
        right: 1px;
        font-size: 9px;
        padding: 1px 4px;
    }

    /* User icon mobile */
    .user-icon {
        padding: 7px 9px;
    }

    .user-name {
        display: none;
    }

    .user-icon i:first-child {
        font-size: 24px;
    }

    .user-icon i:last-child {
        display: none;
    }

    .user-dropdown {
        top: 47px;
        width: 220px;
    }

    /* Page header */
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .dashboard-header h1 {
        font-size: 17px;
    }

    .dashboard-header h1 i {
        font-size: 19px;
    }

    .dashboard-header .date {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 14px;
    }
}

/* Very small devices */
@media screen and (max-width: 480px) {
    .main-sidebar {
        width: 245px;
    }

    .main-header {
        padding: 0 12px;
    }

    .header-right {
        gap: 3px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }
}