:root {
    --primary-color: #011aff;
    --secondary-color: #0e2431;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #4f46e5;
    --secondary-color: #1e293b;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

[data-theme="dark"] .weather-time {
    color: #a78bfa; /* Purple color for dark theme */
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 2px 12px rgba(167, 139, 250, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--background-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: var(--card-background);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.sidebar-header .logo {
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(1, 26, 255, 0.1);
    color: var(--primary-color);
}

.sidebar-menu i {
    font-size: 1.4rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-background);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    width: 300px;
    font-size: 1.4rem;
    transition: var(--transition);
}

.search-bar i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 0.3rem 0.6rem;
    font-size: 1.2rem;
    border: 2px solid var(--card-background);
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.profile-info {
    text-align: right;
}

.profile-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-role {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    background: rgba(1, 26, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.card-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card-content {
    margin-bottom: 2rem;
}

.card-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #000dcc;
    transform: translateY(-2px);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-link {
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border-radius: 2rem;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #eee;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.activity-item {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.activity-item:hover {
    background: #f8f9fa;
    padding-left: 1.5rem;
}

/* Calendar Widget */
.calendar-widget {
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.calendar-header button:hover {
    color: var(--primary-color);
}

.calendar-header h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
}

.calendar-day {
    padding: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day.has-event {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.holiday {
    position: relative;
    color: #e53e3e !important;
    font-weight: bold;
}

.holiday-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 1rem;
    }

    .sidebar-header .logo {
        display: none;
    }

    .sidebar-menu a span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }

    .search-bar input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    .sidebar-header {
        margin-bottom: 1rem;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .sidebar-menu li {
        margin: 0 0.5rem;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .search-bar input {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-info {
        display: none;
    }

    .dashboard-title {
        font-size: 1.6rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-background);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Weather Widget */
.weather-widget {
    text-align: center;
    padding: 1rem;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.weather-detail {
    background: rgba(1, 26, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
}

.weather-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #000dcc;
    font-size: 2.2rem;
    font-weight: 700;
    background: rgba(79, 140, 255, 0.15);
    border-radius: 1.5rem;
    padding: 8px 24px;
    margin: 10px auto 8px auto;
    box-shadow: 0 2px 12px rgba(79,140,255,0.10);
    width: fit-content;
    letter-spacing: 2px;
    transition: background 0.2s;
}

.weather-time .fa-clock {
    color: #4f8cff;
    font-size: 1.5rem;
    margin-right: 4px;
}

/* Enhanced Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Profile Dropdown */
.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.profile-dropdown-menu.active {
    display: block;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.profile-dropdown-menu a:hover {
    background: rgba(1, 26, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Notifications */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    width: 300px;
}

.notifications-dropdown.active {
    display: block;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(1, 26, 255, 0.1);
}

.notification-item.unread {
    background: rgba(1, 26, 255, 0.05);
}

/* Search Enhancement */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(1, 26, 255, 0.1);
}

.calendar-header-day {
    font-weight: bold;
    color: #4f8cff;
    background: none !important;
    cursor: default;
} 