﻿:root {
    --bg: #f4f7fb;
    --card: rgba(255, 255, 255, 0.88);
    --text: #1f2a37;
    --muted: #6b7280;
    --primary: #5b7cfa;
    --primary-dark: #4768e8;
    --secondary: #8fd3c7;
    --accent: #eef2ff;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow: 0 20px 40px rgba(31, 42, 55, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(91, 124, 250, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(143, 211, 199, 0.22), transparent 30%), var(--bg);
    color: var(--text);
    min-height: 100vh;
   
}
.container2 {
    width:90% !important;
    margin:0 auto;
    display:block;
}
.dashboard {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top:100px;
}

.sidebar,
.main-content,
.card,
.session-card,
.doctor-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sidebar {
    background: linear-gradient(180deg, rgba(91, 124, 250, 0.95), rgba(76, 99, 214, 0.96));
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 64px);
    position: sticky;
    top: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
}

.brand h1 {
    font-size: 20px;
    line-height: 1.2;
}

.brand p {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.nav-links {
    display: grid;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
    font-weight: 500;
}

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.18);
        transform: translateX(3px);
    }

.sidebar-footer {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 18px;
    margin-top: 28px;
}

    .sidebar-footer h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .sidebar-footer p {
        font-size: 13px;
        line-height: 1.6;
        opacity: 0.92;
        margin-bottom: 14px;
    }

    .sidebar-footer button {
        border: none;
        background: #fff;
        color: var(--primary);
        padding: 12px 16px;
        border-radius: 14px;
        font-weight: 700;
        cursor: pointer;
    }

.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topbar {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.welcome h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.welcome p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--accent);
    border-radius: 18px;
    padding: 12px 16px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
}

.profile-chip small {
    display: block;
    color: var(--muted);
    margin-bottom: 2px;
    font-size: 12px;
}

.profile-chip strong {
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: "";
        position: absolute;
        right: -35px;
        top: -35px;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: rgba(91, 124, 250, 0.08);
    }

.card-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
    display: block;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-note {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

    .section-title h3 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 14px;
        color: var(--muted);
    }

.sessions-list {
    display: grid;
    gap: 16px;
}

.session-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .session-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 30px rgba(31, 42, 55, 0.08);
    }

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .session-header h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

.session-meta {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .status.completed {
        background: rgba(22, 163, 74, 0.12);
        color: var(--success);
    }

    .status.upcoming {
        background: rgba(245, 158, 11, 0.14);
        color: var(--warning);
    }

.notes-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    color: #334155;
    line-height: 1.7;
    font-size: 14px;
    border-left: 4px solid var(--primary);
}

.doctor-panel {
    display: grid;
    gap: 20px;
    align-content: start;
}

.doctor-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,247,255,0.95));
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.doctor-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, #a5b4fc, #8fd3c7);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.doctor-top small {
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

.doctor-top h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.doctor-top p {
    color: var(--muted);
    font-size: 14px;
}

.doctor-info {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

    .info-row span:first-child {
        color: var(--muted);
    }

.doctor-actions {
    display: grid;
    gap: 12px;
}

.btn {
    text-decoration: none;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 16px 24px rgba(91, 124, 250, 0.25);
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-secondary {
    background: #eef2ff;
    color: var(--primary);
}

.progress-card {
    background: linear-gradient(135deg, rgba(91, 124, 250, 0.94), rgba(143, 211, 199, 0.94));
    color: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

    .progress-card h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .progress-card p {
        font-size: 14px;
        line-height: 1.7;
        opacity: 0.95;
        margin-bottom: 16px;
    }

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    width: 62%;
    height: 100%;
    background: #fff;
    border-radius: inherit;
}

.progress-meta {
    font-size: 13px;
    opacity: 0.92;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        padding: 18px;
    }

    .topbar,
    .card,
    .doctor-card,
    .progress-card,
    .session-card,
    .sidebar {
        border-radius: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome h2 {
        font-size: 24px;
    }

    .session-header,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
