/* Modern SIMS Styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --footer-height: 60px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Layout Styles */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-brand:hover {
    opacity: 0.9;
}

.sidebar-brand img {
    height: 36px;
    margin-right: 0.75rem;
}

.sidebar-menu {
    padding: 0 0.5rem;
}

.menu-item {
    position: relative;
    margin-bottom: 0.25rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.menu-link:hover, .menu-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-link.active {
    font-weight: 500;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 3px solid var(--primary-color);
}

.menu-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.menu-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1.5rem;
}

.menu-item.has-submenu.active .submenu {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Removed old chevron styles to prevent double chevrons */

/* Enhanced Submenu Styles */
.submenu-arrow {
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    margin: 0 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.submenu.expanded {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(8px);
    border-left-color: var(--primary-color);
}

.submenu-link:hover::before {
    width: 3px;
}

.submenu-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: white;
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.submenu-link.active::before {
    width: 3px;
}

.submenu-link i {
    font-size: 1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.submenu-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Menu Item Hover Effects */
.menu-item.has-submenu:hover > .menu-link {
    background: rgba(255, 255, 255, 0.12);
}

.menu-item.has-submenu.active > .menu-link {
    background: rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--primary-color);
}

/* Quick Action Buttons */
.quick-actions {
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateX(6px) translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-action-btn:hover i {
    color: white;
    transform: scale(1.1);
}

.quick-action-btn:active {
    transform: translateX(6px) translateY(0px) scale(0.98);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Top Bar */
.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    text-align: center;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary-modern {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-outline-primary-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-modern {
    background: var(--light-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-secondary-modern:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Enhanced Modern Button Styles */
.btn-modern {
    border-radius: 16px;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern.btn-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary-modern.btn-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-outline-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-outline-modern:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-modern:focus {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Icon spacing in buttons */
.btn-modern i {
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile {
    position: relative;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header-modern {
    padding: 1.5rem 1.5rem 0;
    border-bottom: none;
    background: transparent;
}

.card-body-modern {
    padding: 1.5rem;
}

.card-footer-modern {
    padding: 0 1.5rem 1.5rem;
    background: transparent;
    border-top: none;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
}

.stats-card:hover::after {
    opacity: 1;
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.stats-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dark-color) 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.75rem 0;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-value {
    transform: scale(1.05);
}

.stats-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    position: relative;
}

.stats-change {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-change.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.stats-change.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.stats-change:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-change i {
    margin-right: 0.25rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.stats-change {
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stats-change.positive {
    color: var(--success-color);
}

.stats-change.negative {
    color: var(--danger-color);
}

.stats-change.neutral {
    color: var(--warning-color);
}

/* Messages Dropdown */
.messages-dropdown {
    position: relative;
}

.messages-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.messages-toggle:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.message-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 50px;
    min-width: 1.25rem;
    text-align: center;
    line-height: 1;
    font-weight: 600;
}

.messages-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.messages-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-header h6 {
    margin: 0;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
}

.message-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-item:hover {
    background-color: #f8fafc;
}

.message-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid var(--primary-color);
}

.message-item:last-of-type {
    border-bottom: none;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.message-preview {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.message-time {
    color: #9ca3af;
    font-size: 0.75rem;
}

.no-messages {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown-footer .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Forgot Password Link */
.forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: none;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.forgot-password-link i {
    font-size: 0.85rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast-modern {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid #e2e8f0;
    min-width: 300px;
    margin-bottom: 0.5rem;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}
