body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 32px;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sidebar-icon {
    font-size: 24px;
    margin-right: 8px;
}

.sidebar-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-link.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
}

.nav-link.text-danger {
    color: #ef4444;
}
.nav-link.text-danger:hover {
    background: #fee2e2;
}

.content-wrapper {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.header-logo {
    font-weight: 600;
    font-size: 18px;
}

.header-notifications {
    font-size: 14px;
    color: #64748b;
}

.dashboard-page {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.dashboard-top-row {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1.2fr;
    gap: 24px;
}

.dashboard-bottom-row {
    display: flex;
}

.dash-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 35, 52, 0.08);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.dash-card-header h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.dash-card-body {
    flex: 1;
}

.dash-courses {
    display: flex;
    gap: 16px;
}

.dash-course-item {
    flex: 1;
    background: #f7f9fc;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-course-title {
    font-weight: 600;
    font-size: 14px;
}

.dash-course-progress-label {
    font-size: 13px;
    color: #6b7280;
}

.dash-course-progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.dash-course-progress-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #007bff, #00a2ff);
}

.dash-overall-label {
    font-size: 14px;
    margin-bottom: 12px;
}

.dash-overall-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 12px;
}

.dash-overall-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9900, #ffb347);
}

.dash-overall-percent {
    font-weight: 600;
    font-size: 16px;
}

.dash-notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-notification-item {
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 8px;
}
.dash-notification-item:last-child {
    border-bottom: none;
}

.dash-notification-text {
    margin-bottom: 2px;
    line-height: 1.4;
}

.dash-notification-time {
    font-size: 12px;
    color: #9ca3af;
}

.dash-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-activity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
}

.dash-activity-text {
    font-size: 14px;
}

.dash-empty {
    font-size: 14px;
    color: #9ca3af;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #2563eb;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    align-self: flex-end;
    font-size: 12px;
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.text-center { text-align: center; }

/* Адаптивность для карточек */
@media (max-width: 1200px) {
    .dashboard-top-row {
        grid-template-columns: 1fr;
    }
}