* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --warning: #f72585;
    --info: #4895ef;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #adb5bd;
    --gray-light: #e9ecef;
    --card-bg: #ffffff;
    --sidebar-bg: #1a1c23;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.8s ease-out;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h1 {
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray);
    font-size: 16px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease-out;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-left: 4px solid #4caf50;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
    transition: var(--transition);
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-group input:focus + .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--dark);
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.login-footer p {
    color: var(--gray);
    font-size: 14px;
}

.demo-credentials {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.demo-credentials strong {
    color: var(--primary);
}

.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
    position: relative;
}

.social-login p::before, .social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--gray-light);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-btn.google {
    color: #db4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn i {
    font-size: 18px;
}

/* Dashboard Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    transition: width 0.3s ease, transform 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .submenu-toggle,
.sidebar.collapsed .user-info,
.sidebar.collapsed .nav-submenu {
    display: none;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 14px 10px;
}

.sidebar.collapsed .user-mini-profile {
    justify-content: center;
    padding: 15px 10px;
}

.sidebar-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    margin-bottom: 0;
}

.sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.sidebar-header .logo-text {
    font-size: 22px;
}

.sidebar-toggle {
    background: #f8f9fa;
    border: none;
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
}

.sidebar-nav {
    padding: 20px 0;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.logout-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.logout-link:hover {
    color: white !important;
}

/* Page Content */
.page-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: margin-left 0.3s ease;
}

.page-content.sidebar-collapsed {
    margin-left: 70px;
}

/* Header Styles */
.header {
    background: var(--header-bg);
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.header-title p {
    color: var(--gray);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 20px 12px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 300px;
    font-size: 14px;
    transition: var(--transition);
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.header-icons {
    display: flex;
    gap: 15px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.task-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-right: 15px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.task-timer i {
    color: var(--primary);
    font-size: 16px;
}

.task-timer #timerDisplay {
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: center;
}

.task-timer.exceeded {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.task-timer.exceeded i {
    color: #ef4444;
}

.task-timer.exceeded #timerDisplay {
    color: #ef4444;
    font-weight: 700;
}

.task-timer.within-limit {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.task-timer.within-limit i {
    color: #10b981;
}

.task-timer.within-limit #timerDisplay {
    color: #10b981;
    font-weight: 600;
}

.task-timer[style*="cursor: pointer"] {
    transition: all 0.3s ease;
}

.task-timer[style*="cursor: pointer"]:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-profile:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--gray);
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--gray);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 10px;
    background: #f5f7fa;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Stats Grid */
.stats-grid {
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.card-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: var(--dark);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-light {
    background: #f8f9fa;
    color: var(--dark);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: #e9ecef;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.card-body {
    padding: 25px;
}

/* Chart Placeholders */
.chart-placeholder {
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-align: center;
}

.pie-chart {
    height: 250px;
}

.chart-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.activity-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.badge-primary { background: var(--primary); }
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-info { background: var(--info); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.activity-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: var(--gray);
}

/* Products List */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.product-sales {
    font-size: 13px;
    color: var(--gray);
}

.product-revenue {
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--gray);
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-8, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .col-3, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 260px;
        transform: translateX(-100%);
    }
    
    .sidebar.collapsed.active {
        transform: translateX(0);
    }
    
    .page-content,
    .page-content.sidebar-collapsed {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
}

.header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .search-results {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-top: 5px;
            z-index: 1000;
        }
        
        .search-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
        }
        
        .search-item:hover {
            background: #f8f9fa;
        }
        
        .search-item i {
            color: #4361ee;
            font-size: 16px;
        }
        
        .search-info {
            flex: 1;
        }
        
        .search-title {
            font-weight: 600;
            color: #2b2d42;
            font-size: 14px;
        }
        
        .search-desc {
            color: #6c757d;
            font-size: 12px;
        }
        
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            width: 320px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-top: 10px;
            z-index: 1000;
        }
        
        .profile-dropdown {
            width: 200px;
        }
        
        .dropdown-header {
            padding: 15px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .dropdown-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }
        
        .badge {
            background: #4361ee;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .dropdown-content {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .notification-item, .message-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .notification-item.unread, .message-item.unread {
            background: #f8f9ff;
        }
        
        .notification-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: #4361ee;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        
        .notification-content, .message-content {
            flex: 1;
        }
        
        .notification-title, .message-sender {
            font-weight: 600;
            color: #2b2d42;
            font-size: 14px;
            margin-bottom: 2px;
        }
        
        .notification-desc, .message-preview {
            color: #6c757d;
            font-size: 13px;
            margin-bottom: 2px;
        }
        
        .notification-time, .message-time {
            color: #adb5bd;
            font-size: 12px;
        }
        
        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #4361ee;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }
        
        .dropdown-footer {
            padding: 12px 20px;
            text-align: center;
            border-top: 1px solid #f0f0f0;
        }
        
        .dropdown-footer a {
            color: #4361ee;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            color: #2b2d42;
            text-decoration: none;
            transition: background-color 0.2s;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
        }
        
        .dropdown-item:hover {
            background: #f8f9fa;
        }
        
        .dropdown-item i {
            width: 16px;
            color: #6c757d;
        }
        
        .dropdown-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 5px 0;
        }
        
        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            color: #2b2d42;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }
        
        .theme-toggle:hover {
            background: #4361ee;
            color: white;
        }
        
        .nav-section {
            margin-bottom: 20px;
        }
        
        .nav-section-title {
            padding: 10px 25px;
            font-size: 12px;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .nav-badge {
            background: #4361ee;
            color: white;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            margin-left: auto;
        }
        
        .has-submenu .nav-link {
            position: relative;
        }
        
        .submenu-toggle {
            margin-left: auto;
            transition: transform 0.3s ease;
        }
        
        .has-submenu.active .submenu-toggle {
            transform: rotate(180deg);
        }
        
        .nav-submenu {
            display: none;
            background: rgba(255,255,255,0.05);
            margin-left: 20px;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .has-submenu.active .nav-submenu {
            display: block;
        }
        
        .nav-submenu .nav-link {
            padding: 10px 20px;
            font-size: 14px;
        }
        
        .sidebar-close {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }
        
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 999;
        }
        
        .sidebar-overlay.active {
            display: block;
        }
        
        .user-mini-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px 25px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .footer-links {
            display: flex;
            gap: 20px;
            margin-top: 8px;
        }
        
        .footer-links a {
            color: #6c757d;
            text-decoration: none;
            font-size: 13px;
        }
        
        .footer-links a:hover {
            color: #4361ee;
        }
        
        .footer-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
        }
        
        .stat {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6c757d;
            font-size: 13px;
        }
        
        .stat i {
            color: #4361ee;
        }
        
        .social-links {
            display: flex;
            gap: 10px;
        }
        
        .social-link {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: #f8f9fa;
            color: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            background: #4361ee;
            color: white;
        }
        
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid #e9ecef;
            margin-top: 15px;
        }
        
        .version-info {
            color: #6c757d;
            font-size: 13px;
        }
        
        .divider {
            margin: 0 10px;
            color: #dee2e6;
        }
        
        .quick-actions {
            display: flex;
            gap: 10px;
        }
        
        .footer-btn {
            padding: 6px 12px;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            background: white;
            color: #6c757d;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .footer-btn:hover {
            background: #4361ee;
            color: white;
            border-color: #4361ee;
        }

        /* Profile Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 18px;
            color: #6c757d;
            cursor: pointer;
        }

        .modal-body {
            padding: 25px;
        }

        .profile-info {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
        }

        .profile-avatar-large {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4361ee, #7209b7);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: 600;
        }

        .profile-details h4 {
            margin: 0 0 5px 0;
            font-size: 18px;
            font-weight: 600;
        }

        .profile-details p {
            margin: 0;
            color: #6c757d;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 10px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2b2d42;
            font-size: 14px;
        }

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: #4361ee;
        }

        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: #4361ee;
            color: white;
        }

        .btn-primary:hover {
            background: #3a56d4;
        }

        .btn-light {
            background: #f8f9fa;
            color: #2b2d42;
            border: 1px solid #e9ecef;
        }

        .btn-light:hover {
            background: #e9ecef;
        }
        
        @media (max-width: 768px) {
            .sidebar-close {
                display: block;
            }
            
            .footer-bottom {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .footer-stats {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        /* Fix for dropdown positioning */
        .user-profile {
            position: relative;
        }

        .profile-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            width: 200px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-top: 10px;
            z-index: 1000;
            display: none;
        }

        /* Ensure other dropdowns are properly positioned */
        .notification-dropdown,
        .message-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            width: 320px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-top: 10px;
            z-index: 1000;
            display: none;
        }

        /* Make sure header actions has proper positioning */
        .header-actions {
            position: relative;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .header-icons {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .icon-btn {
            position: relative;
        }

        .btn-reset {
            padding: 12px 30px;
            background: #f8f9fa;
            color: var(--dark);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-reset:hover {
            background: #e9ecef;
        }