* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.dashboard-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    margin: 0 auto;
    min-height: 600px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f6ff;
    width: 280px;
    padding: 30px 0;
    border-right: 1px solid #e5e5e5;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 30px 40px;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-weight: 600;
    color: #8b5cf6;
    font-size: 18px;
}

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

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

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    font-size: 14px;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #8b5cf6;
}

.nav-link.active {
    background: #8b5cf6;
    color: white;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 40px;
}

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

.welcome {
    color: #1f2937;
    font-size: 28px;
    font-weight: 600;
}

.welcome-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-top: 5px;
}

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

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-btn {
    background: #8b5cf6;
    color: white;
}

.add-btn:hover {
    background: #7c3aed;
}

.export-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.export-btn:hover {
    background: #e5e7eb;
}

.search-btn {
    background: #f3f4f6;
    color: #6b7280;
}

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

.profile-name {
    font-weight: 500;
    color: #1f2937;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.stat-icon.learners {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.stat-icon.time {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.stat-icon.access {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.stat-info p {
    color: #6b7280;
    font-size: 14px;
}

/* Main Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Chart Section */
.chart-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.chart-filters {
    display: flex;
    gap: 10px;
}

.filter-dropdown {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}

.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Course Breakdown */
.course-breakdown {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.breakdown-header {
    text-align: center;
    margin-bottom: 25px;
}

.breakdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.breakdown-number {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.pie-chart {
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
}

.pie-chart::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
} 

.breakdown-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.courses { background: #3b82f6; }
.legend-color.packs { background: #10b981; }
.legend-color.quizzes { background: #ef4444; }
.legend-color.assessments { background: #f59e0b; }

.legend-text {
    color: #6b7280;
}

.legend-number {
    color: #1f2937;
    font-weight: 500;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}