
/* =========================================
   CLIENTFLOW 2028 — GLOBALNE STYLE
   ========================================= */

:root {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #201c3c;
    background: #f7f8fd;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #f7f8fd;
    color: #201c3c;
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================
   UKŁAD APLIKACJI
   ========================================= */

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient( 180deg, #15142e 0%, #24113d 100% );
    color: white;
    min-height: 100vh;
}

main {
    flex: 1;
    min-width: 0;
    background: #f7f8fd;
}

.top-row {
    height: 76px;
    background: white;
    border-bottom: 1px solid #ecebf5;
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 38px 40px;
}

/* =========================================
   PANEL GŁÓWNY
   ========================================= */

.cf-dashboard {
    width: 100%;
}

.cf-eyebrow {
    color: #7662ef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.cf-dashboard h1 {
    font-size: clamp(28px, 3vw, 38px);
    color: #201c3c;
    font-weight: 800;
    margin: 0 0 12px;
}

.cf-dashboard > p,
.cf-dashboard-heading p {
    color: #85849b;
    margin: 0;
}

.cf-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cf-new-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7662ef, #a278ef);
    color: white;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px #7662ef25;
}

    .cf-new-visit:hover {
        color: white;
        opacity: .92;
    }

.cf-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cf-stat-card {
    background: white;
    border: 1px solid #eeedf7;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 12px 35px #27204708;
}

    .cf-stat-card p {
        color: #85849b;
        margin: 0 0 22px;
    }

    .cf-stat-card h2 {
        color: #201c3c;
        font-size: 29px;
        font-weight: 800;
        margin: 0 0 12px;
    }

    .cf-stat-card small {
        color: #918cae;
    }

/* =========================================
   WIZYTY I KARTY
   ========================================= */

.cf-appointments {
    background: white;
    border: 1px solid #eeedf7;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 35px #27204708;
    margin-top: 24px;
}

    .cf-appointments h2 {
        color: #201c3c;
        font-size: 22px;
        margin: 0 0 20px;
    }

.cf-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

    .cf-section-heading h2 {
        margin: 0;
    }

    .cf-section-heading span {
        color: #918cae;
        font-size: 12px;
    }

.cf-visit {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #f0eef7;
}

.cf-time {
    flex-shrink: 0;
    background: #f0edff;
    color: #7056ee;
    border-radius: 12px;
    padding: 14px;
    font-weight: 800;
    min-width: 64px;
    text-align: center;
}

.cf-visit-info {
    flex: 1;
    min-width: 0;
}

    .cf-visit-info strong,
    .cf-visit strong {
        color: #201c3c;
    }

    .cf-visit-info p,
    .cf-visit p {
        color: #918cae;
        margin: 6px 0 0;
    }

.cf-status {
    border-radius: 30px;
    background: #e8f7ee;
    color: #07864c;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 13px;
}

/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */

@media (max-width: 950px) {
    .cf-stats {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 26px 20px;
    }
}

@media (max-width: 700px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
    }

    .top-row {
        height: 65px;
        padding: 0 20px;
    }

    .cf-dashboard-heading {
        align-items: stretch;
    }

    .cf-new-visit {
        width: 100%;
    }

    .cf-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cf-visit {
        flex-wrap: wrap;
    }
}
