/* GLOBAL RESETS - Applied to all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4eaf0; /* Changed from #f8f5f0 to match main-content */
    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 ===== */
body.login-page {
    background: radial-gradient(
        circle at 30% 20%,
        #1e293b 0%,
        #0f172a 40%,
        #2a2f4d 100%
    );
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 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);
}

.login-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.5);
}

.login-container h1 {
    text-align: center;
   color: #3d385e;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    margin-bottom: 10px;
}

.login-container h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
  
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.login-container:hover h1::after {
    width: 60px;
}

.login-container .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-container label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.login-container .form-group:hover label {
    color: #3b82f6;
    transform: translateX(5px);
}

.login-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-container .input-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.login-container .input-wrapper .toggle-password {
    left: auto;
    right: 14px;
    cursor: pointer;
    pointer-events: all;
    z-index: 2;
    font-size: 18px;
}

.login-container .input-wrapper .toggle-password:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.login-container input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    background: #f8fafc;
}

.login-container input:hover {
    border-color: #3b82f6;
    background: #ffffff;
    transform: scale(1.02);
}

.login-container input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
    padding-left: 45px;
}

.login-container input:focus + i {
    color: #3b82f6;
    transform: scale(1.1);
}

.login-container input::placeholder {
    color: #94a3b8;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.login-container input:hover::placeholder {
    opacity: 0.6;
}

.login-container button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 15px 0 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.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(-3px) scale(1.02);
    box-shadow: 0 15px 30px -8px rgba(59, 130, 246, 0.6);
}

.login-container button:hover::before {
    left: 100%;
}

.login-container button:active {
    transform: translateY(0) scale(0.98);
}

.login-container .forgot-link {
    text-align: center;
    margin-bottom: 15px;
}

.login-container .forgot-link a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-container .forgot-link a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.login-container .forgot-link a:hover {
    color: #3b82f6;
}

.login-container .forgot-link a:hover i {
    transform: translateX(3px);
}

.login-container .forgot-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.login-container .forgot-link a:hover::after {
    width: 100%;
}

.login-container .error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-left: 4px solid #dc2626;
    animation: slideIn 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-container .error i {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container .register-link {
    text-align: center;
    margin-top: 15px;
    color: #64748b;
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.login-container .register-link a {
    color: #3b82f6;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-container .register-link a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.login-container .register-link a:hover {
    color: #8b5cf6;
}

.login-container .register-link a:hover i {
    transform: translateX(5px);
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }
    
    .login-container:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

@media screen and (max-width: 360px) {
    .login-container {
        padding: 20px 15px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
}

/* ====HEADER AND SIDEBAR STYLES============== */

/* Header Styles */
.main-header {
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
}

.header-left .logo i {
    color: #3b82f6;
    font-size: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 18px;
    order: 3;
}

.sidebar-toggle:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

/* Notices */
.notices {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    cursor: pointer;
    position: relative;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    order: 1;
}

.notices:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.notices i {
    font-size: 18px;
}

.notices .badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 20px;
    position: absolute;
    top: 0;
    right: 0;
}

.notices-text {
    font-size: 14px;
}

/* User Menu */
.user-menu {
    position: relative;
    order: 2;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-icon:hover {
    background: #f1f5f9;
}

.user-icon i:first-child {
    font-size: 28px;
    color: #64748b;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    font-family: 'Nunito', sans-serif;
}

.user-icon i:last-child {
    font-size: 12px;
    color: #94a3b8;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 240px;
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
}

.user-info i {
    font-size: 36px;
    color: #64748b;
}

.user-info div {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: #0f172a;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
}

.user-info small {
    color: #64748b;
    font-size: 12px;
    text-transform: capitalize;
    font-family: 'Nunito', sans-serif;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 5px 0;
}

.dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #3b82f6;
    padding-left: 20px;
}

.dropdown-item i {
    width: 18px;
    font-size: 16px;
}

/* Sidebar Styles */
.main-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
}

.sidebar-header i {
    color: #3b82f6;
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #524d75;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: -0.1px;
    font-weight: 500;
}

.sidebar-nav li a i {
    width: 18px;
    font-size: 16px;
}

.sidebar-nav li:hover a {
    background: #f1f5f9;
    color: #3b82f6;
    padding-left: 25px;
}

.sidebar-nav li.active a {
    background: #eef2ff;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.sidebar-footer a:hover {
    padding-left: 5px;
}

.sidebar-footer a i {
    font-size: 16px;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
    background: #f4eaf0;
}

/* ========== MOBILE RESPONSIVE FIXES ========== */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 55px;
    }

    .main-content {
        margin-top: 55px;
        padding: 20px;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    /* Sidebar mobile styles */
    .main-sidebar {
        position: fixed;
        left: 0;
        top: 55px;
        bottom: 0;
        width: 260px;
        background: white;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        display: flex;
        flex-direction: column;
    }
    
    .main-sidebar.show {
        transform: translateX(0);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Hide notices text on mobile */
    .notices .notices-text {
        display: none;
    }
    
    .notices {
        padding: 6px 8px;
    }
    
    .notices i {
        font-size: 18px;
    }
    
    .notices .badge {
        top: -2px;
        right: -2px;
        font-size: 9px;
        padding: 1px 4px;
    }
    
    /* User menu mobile styles */
    .user-icon {
        padding: 6px 8px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-icon i:first-child {
        font-size: 24px;
    }
    
    .user-icon i:last-child {
        display: none;
    }
    
    .user-dropdown {
        top: 45px;
        width: 220px;
    }
}

/* Very small devices */
@media screen and (max-width: 480px) {
    .main-sidebar {
        width: 240px;
    }
    
    .main-header {
        padding: 0 10px;
    }
    
    .header-right {
        gap: 5px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
}

/* =======HEADER FOR ALL PAGES========= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 20px;
    color: #324062;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    margin: 0;
}

.dashboard-header h1 i {
    font-size: 22px;
}

.dashboard-header .date {
    background: rgb(255, 255, 255);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 18px;
    }
    
    .dashboard-header h1 i {
        font-size: 20px;
    }
    
    .dashboard-header .date {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
        background: #f8fafc;
    }
}


