/* =========================================================
   Güzellik Merkezi Otomasyonu
   Premium sol menü + responsive yönetim paneli
   ========================================================= */

:root {
    --sidebar-width: 278px;

    --background: #f5eff5;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-soft: #fbf8fb;

    --text: #24152f;
    --muted: #7c7282;
    --border: rgba(113, 70, 119, 0.15);

    --primary: #914a98;
    --primary-dark: #713777;
    --primary-light: #b76abb;
    --primary-soft: #f4e6f5;

    --success: #13b963;
    --success-dark: #0c914a;
    --success-soft: #e7f9ef;

    --warning: #efb319;
    --warning-soft: #fff6dc;

    --danger: #ef4d55;
    --danger-soft: #ffebec;

    --secondary: #6f7e9d;
    --secondary-dark: #596783;

    --cancelled: #9b97a2;
    --cancelled-soft: #efedf2;

    --shadow-sm: 0 8px 22px rgba(61, 31, 72, 0.07);
    --shadow-md: 0 15px 36px rgba(61, 31, 72, 0.10);
    --shadow-lg: 0 26px 70px rgba(61, 31, 72, 0.14);

    --radius-sm: 11px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
}

/* =========================================================
   Reset ve temel görünüm
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(circle at 10% 8%, rgba(184, 102, 178, 0.15), transparent 28%),
        radial-gradient(circle at 91% 88%, rgba(91, 74, 142, 0.11), transparent 30%),
        radial-gradient(circle at 70% 5%, rgba(255, 255, 255, 0.94), transparent 22%),
        linear-gradient(135deg, #f8f2f7 0%, #f3edf5 48%, #eee9f2 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(5px);
}

body::before {
    width: 340px;
    height: 340px;
    top: 18%;
    right: -170px;
    background: rgba(172, 92, 169, 0.09);
}

body::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: 28%;
    background: rgba(90, 72, 137, 0.07);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Masaüstü sol menü
   ========================================================= */

.sidebar {
    position: fixed;
    z-index: 120;
    inset: 18px auto 18px 18px;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(165deg, rgba(55, 25, 66, 0.98), rgba(34, 20, 49, 0.99));
    box-shadow:
        0 28px 65px rgba(39, 19, 49, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-decoration {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.sidebar-decoration-one {
    width: 210px;
    height: 210px;
    top: -95px;
    right: -95px;
    background: rgba(197, 94, 189, 0.20);
    filter: blur(2px);
}

.sidebar-decoration-two {
    width: 170px;
    height: 170px;
    bottom: 80px;
    left: -110px;
    background: rgba(124, 100, 192, 0.16);
}

.sidebar-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 20px 20px;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo,
.mobile-brand-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(204, 103, 196, 0.92), rgba(129, 72, 151, 0.96));
    box-shadow:
        0 12px 28px rgba(192, 86, 181, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    font-weight: 950;
    letter-spacing: 0.02em;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    position: relative;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-close span {
    position: absolute;
    top: 18px;
    left: 10px;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.sidebar-close span:first-child {
    transform: rotate(45deg);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg);
}

.sidebar-section-label {
    position: relative;
    z-index: 2;
    padding: 7px 23px 9px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.sidebar-nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 0 13px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 49px;
    padding: 10px 13px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-weight: 760;
    transition:
        color 0.17s ease,
        background 0.17s ease,
        border-color 0.17s ease,
        transform 0.17s ease;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
}

.sidebar-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.sidebar-link.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(90deg, rgba(196, 92, 187, 0.25), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 26px rgba(18, 8, 25, 0.16);
}

.sidebar-link.is-active::before {
    background: #d477ce;
    box-shadow: 0 0 12px rgba(212, 119, 206, 0.75);
}

.sidebar-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 11px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.is-active .sidebar-icon {
    background: rgba(255, 255, 255, 0.11);
}

.sidebar-icon svg,
.sidebar-logout svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    position: relative;
    z-index: 2;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 8, 22, 0.18);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px 7px 13px;
}

.profile-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(171, 78, 166, 0.90), rgba(104, 63, 137, 0.92));
    font-size: 14px;
    font-weight: 900;
}

.profile-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.profile-copy strong,
.profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: #fff;
    font-size: 13px;
}

.profile-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 10px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 128, 135, 0.11);
    border-radius: 13px;
    color: #ffc7ca;
    background: rgba(239, 77, 85, 0.08);
    font-size: 12px;
    font-weight: 800;
    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.sidebar-logout:hover {
    color: #fff;
    border-color: rgba(255, 128, 135, 0.19);
    background: rgba(239, 77, 85, 0.15);
}

.sidebar-logout svg {
    width: 17px;
    height: 17px;
}

/* =========================================================
   Mobil üst bar ve kaplama
   ========================================================= */

.mobile-topbar,
.sidebar-overlay {
    display: none;
}

.container {
    width: calc(100% - var(--sidebar-width) - 74px);
    max-width: 1500px;
    margin: 28px 28px 42px calc(var(--sidebar-width) + 46px);
}

/* =========================================================
   Genel başlık, buton ve uyarılar
   ========================================================= */

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

.page-header h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.12;
    letter-spacing: -0.7px;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, #a23eaa, var(--primary));
    box-shadow: 0 10px 22px rgba(145, 74, 152, 0.24);
}

.btn-success {
    background: linear-gradient(135deg, #08cf68, var(--success));
    box-shadow: 0 10px 22px rgba(19, 185, 99, 0.22);
}

.btn-secondary,
.btn-soft {
    background: linear-gradient(180deg, #7d8baa, var(--secondary));
    box-shadow: 0 9px 20px rgba(85, 101, 137, 0.20);
}

.btn-danger {
    background: linear-gradient(135deg, #f5676d, var(--danger));
    box-shadow: 0 9px 20px rgba(239, 77, 85, 0.20);
}

.btn-block {
    width: 100%;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.alert-success {
    color: #11643e;
    border-color: #bde8ce;
    background: #e8f8ef;
}

.alert-danger {
    color: #963239;
    border-color: #f3c0c3;
    background: #fdebed;
}

.alert-warning {
    color: #78570c;
    border-color: #f0dca0;
    background: #fff5d9;
}

/* =========================================================
   Giriş ve form alanları
   ========================================================= */

.auth-wrapper {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.auth-card,
.form-card,
.stat-card,
.table-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 252, 0.89));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.auth-card {
    width: min(460px, 100%);
    padding: 30px;
}

.auth-card h1 {
    margin: 0 0 8px;
}

.auth-card p {
    color: var(--muted);
}

.auth-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    box-shadow: 0 12px 25px rgba(125, 76, 120, 0.24);
    font-weight: 900;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(145, 74, 152, 0.12);
}

.form-card {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.check-line input {
    width: auto;
    min-height: auto;
}

.compact-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.user-create-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* =========================================================
   Tablolar, detaylar ve istatistik
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

th {
    color: #4d4054;
    background: rgba(249, 245, 249, 0.82);
    font-size: 13px;
    font-weight: 850;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(250, 245, 250, 0.75);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);
}

.detail-grid span {
    overflow-wrap: anywhere;
    color: var(--muted);
}

.stat-card {
    width: min(360px, 100%);
    padding: 20px;
    margin-bottom: 20px;
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.stat-card strong {
    font-size: 28px;
}

/* =========================================================
   Takvim üst kartı
   ========================================================= */

.calendar-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calendar-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 26px 30px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 95% 0, rgba(175, 90, 169, 0.11), transparent 25%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 244, 250, 0.90));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.calendar-hero-left {
    min-width: 0;
}

.calendar-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 850;
}

.calendar-hero-left h1 {
    margin: 10px 0 8px;
    color: #28133a;
    font-size: clamp(31px, 3.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -1px;
    white-space: nowrap;
}

.calendar-hero-left p {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: max-content;
    flex-wrap: nowrap;
}

/* =========================================================
   Takvim paneli ve durum etiketleri
   ========================================================= */

.calendar-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0, rgba(174, 91, 168, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 248, 252, 0.91));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.calendar-panel-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.calendar-panel-head > div:first-child {
    min-width: 0;
}

.calendar-panel-head h2 {
    margin: 0 0 8px;
    color: #2c173d;
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.15;
}

.calendar-panel-head p {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: max-content;
    flex-wrap: nowrap;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.legend-pill::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.legend-waiting {
    color: #8a6000;
    border-color: #f1d274;
    background: var(--warning-soft);
}

.legend-waiting::before {
    background: var(--warning);
}

.legend-arrived {
    color: #087742;
    border-color: #a8e7c5;
    background: var(--success-soft);
}

.legend-arrived::before {
    background: var(--success);
}

.legend-no-show {
    color: #bd3037;
    border-color: #ffb6ba;
    background: var(--danger-soft);
}

.legend-no-show::before {
    background: var(--danger);
}

.legend-cancelled {
    color: #6f6875;
    border-color: #d9d4df;
    background: var(--cancelled-soft);
}

.legend-cancelled::before {
    background: var(--cancelled);
}

.legend-completed {
    color: #087540;
    border-color: #afe2c5;
    background: #e8f8ef;
}

.legend-completed::before {
    background: #08aa59;
}

/* =========================================================
   Takvim kartları
   ========================================================= */

.calendar-board,
.calendar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.calendar-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    min-height: 150px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(125, 76, 120, 0.15);
    border-radius: 19px;
    color: inherit;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.calendar-slot:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: rgba(145, 74, 152, 0.30);
    box-shadow: 0 18px 36px rgba(65, 39, 76, 0.13);
}

.calendar-slot strong {
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.slot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.slot-state,
.slot-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #67717c;
    background: #f0f3f7;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.slot-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.slot-main {
    overflow: hidden;
    color: #21132f;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-sub {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-hint {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}

.slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
}

.slot-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: #625668;
    background: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-empty {
    background: linear-gradient(180deg, #fff 0%, #fdfbfd 100%);
}

.empty-state {
    color: #66717d;
    background: #eef2f7;
}

.status-waiting {
    border-color: #f0ce70;
    background: linear-gradient(180deg, #fffaf0 0%, #fff2d2 100%);
}

.status-waiting .slot-state,
.status-waiting .slot-status {
    color: #8a6000;
    background: #ffe6a2;
}

.status-arrived {
    border-color: #8dd8ad;
    background: linear-gradient(180deg, #f4fdf8 0%, #def6e8 100%);
}

.status-arrived .slot-state,
.status-arrived .slot-status {
    color: #087342;
    background: #c7efd8;
}

.status-completed {
    border-color: #8bd2a8;
    background: linear-gradient(180deg, #f2fcf6 0%, #dff4e8 100%);
}

.status-completed .slot-state,
.status-completed .slot-status {
    color: #07683b;
    background: #c5ead4;
}

.status-no_show {
    border-color: #f0a3a8;
    background: linear-gradient(180deg, #fff7f7 0%, #fde2e4 100%);
}

.status-no_show .slot-state,
.status-no_show .slot-status {
    color: #b72f36;
    background: #fac8cb;
}

.status-cancelled {
    border-color: #d5d0da;
    background: linear-gradient(180deg, #f8f7f9 0%, #ebe8ee 100%);
}

.status-cancelled .slot-state,
.status-cancelled .slot-status {
    color: #665f6b;
    background: #dcd7e1;
}

/* =========================================================
   Tablet ve mobil
   ========================================================= */

@media (max-width: 1180px) {
    .sidebar {
        inset: 12px auto 12px 12px;
        width: min(320px, calc(100vw - 38px));
        transform: translateX(calc(-100% - 30px));
        transition: transform 0.24s ease;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        visibility: hidden;
        border: 0;
        opacity: 0;
        background: rgba(23, 13, 29, 0.50);
        backdrop-filter: blur(3px);
        transition:
            opacity 0.22s ease,
            visibility 0.22s ease;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .mobile-topbar {
        position: fixed;
        z-index: 100;
        top: 10px;
        right: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 9px 11px 9px 13px;
        border: 1px solid rgba(125, 76, 120, 0.13);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.90);
        box-shadow: 0 14px 34px rgba(55, 29, 65, 0.13);
        backdrop-filter: blur(17px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 12px;
    }

    .mobile-brand > span:last-child {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-brand strong,
    .mobile-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-brand strong {
        color: #34203f;
        font-size: 13px;
    }

    .mobile-brand small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
    }

    .mobile-menu-button {
        width: 43px;
        height: 43px;
        display: flex;
        flex: 0 0 43px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 13px;
        background: linear-gradient(145deg, var(--primary), var(--primary-dark));
        box-shadow: 0 9px 20px rgba(145, 74, 152, 0.23);
    }

    .mobile-menu-button span {
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    .container {
        width: min(100% - 28px, 1500px);
        margin: 92px auto 32px;
    }

    .calendar-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .calendar-hero-left p,
    .calendar-panel-head p {
        white-space: normal;
    }

    .calendar-hero-actions {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-width: 0;
    }

    .calendar-hero-actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 11px;
    }

    .calendar-panel-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .status-legend {
        justify-content: flex-start;
        min-width: 0;
        flex-wrap: wrap;
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-form,
    .user-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .calendar-hero {
        padding: 22px;
        border-radius: 23px;
    }

    .calendar-panel {
        padding: 20px;
        border-radius: 23px;
    }

    .calendar-hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .calendar-slot {
        min-height: 138px;
        padding: 16px;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 18px, 1500px);
        margin: 88px auto 22px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-actions .btn,
    .page-header > .btn {
        flex: 1 1 46%;
    }

    .calendar-shell {
        gap: 16px;
    }

    .calendar-hero {
        padding: 19px;
        border-radius: 20px;
    }

    .calendar-mini-badge {
        min-height: 31px;
        padding: 6px 11px;
        font-size: 12px;
    }

    .calendar-hero-left h1 {
        margin-top: 9px;
        font-size: 29px;
        white-space: normal;
    }

    .calendar-hero-left p {
        font-size: 13px;
    }

    .calendar-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .calendar-hero-actions .btn {
        min-height: 43px;
        padding: 10px 9px;
        font-size: 13px;
    }

    .calendar-panel {
        padding: 17px;
        border-radius: 20px;
    }

    .calendar-panel-head {
        gap: 15px;
        margin-bottom: 18px;
    }

    .calendar-panel-head h2 {
        font-size: 24px;
    }

    .calendar-panel-head p {
        font-size: 13px;
    }

    .legend-pill {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calendar-slot {
        min-height: 128px;
        padding: 15px;
        border-radius: 16px;
    }

    .calendar-slot strong {
        font-size: 25px;
    }

    .slot-main {
        font-size: 19px;
    }

    .form-grid,
    .compact-form,
    .user-create-form,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .search-form {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .mobile-topbar {
        top: 7px;
        right: 8px;
        left: 8px;
        min-height: 60px;
        border-radius: 17px;
    }

    .mobile-brand-logo {
        width: 39px;
        height: 39px;
    }

    .mobile-brand strong {
        font-size: 12px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .auth-card {
        padding: 23px 18px;
        border-radius: 18px;
    }

    .calendar-hero-actions {
        grid-template-columns: 1fr;
    }

    .status-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .legend-pill {
        justify-content: center;
        width: 100%;
    }

    .calendar-slot {
        min-height: 122px;
    }
}


/* =========================================================
   Tüm yönetim sayfaları için ortak premium oval yüzey
   Dashboard kendi özel iki panelini kullanmaya devam eder.
   ========================================================= */

.page-surface {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 70px);
    padding: clamp(20px, 2.3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0, rgba(175, 90, 169, 0.09), transparent 24%),
        radial-gradient(circle at 0 100%, rgba(101, 78, 151, 0.05), transparent 22%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 251, 0.90));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.page-surface::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    top: -145px;
    right: -115px;
    border-radius: 50%;
    background: rgba(171, 88, 165, 0.08);
}

.page-surface::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    bottom: -125px;
    left: -90px;
    border-radius: 50%;
    background: rgba(88, 70, 137, 0.05);
}

.page-surface > .page-header {
    position: relative;
    margin: -4px -4px 24px;
    padding: 5px 5px 23px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.page-surface > .page-header h1 {
    color: #2b173c;
}

.page-surface .form-card,
.page-surface .table-wrapper,
.page-surface .stat-card,
.page-surface .detail-grid > div {
    border-color: rgba(124, 74, 130, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(253, 250, 253, 0.91));
    box-shadow: 0 12px 30px rgba(61, 31, 72, 0.08);
}

.page-surface .search-form {
    padding: 14px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   Profesyonel giriş ekranı
   ========================================================= */

.auth-body {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 13%, rgba(191, 96, 184, 0.22), transparent 28%),
        radial-gradient(circle at 91% 87%, rgba(81, 66, 130, 0.16), transparent 30%),
        linear-gradient(135deg, #f8f1f7 0%, #eee8f2 52%, #e8e3ee 100%);
}

.auth-page-content {
    width: min(1240px, calc(100% - 42px));
    max-width: none;
    min-height: 100vh;
    display: grid;
    align-items: center;
    margin: 0 auto;
    padding: 28px 0;
}

.login-layout {
    width: 100%;
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(390px, 0.86fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.60);
    box-shadow:
        0 35px 90px rgba(52, 27, 62, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
}

.login-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: clamp(34px, 5vw, 66px);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 105, 204, 0.32), transparent 29%),
        radial-gradient(circle at 3% 100%, rgba(120, 92, 189, 0.28), transparent 31%),
        linear-gradient(145deg, #3b1949 0%, #271331 55%, #1e1029 100%);
}

.login-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.19;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.login-showcase-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.login-decoration-one {
    width: 330px;
    height: 330px;
    top: -170px;
    right: -125px;
    background: rgba(210, 105, 201, 0.20);
    box-shadow: 0 0 80px rgba(210, 105, 201, 0.12);
}

.login-decoration-two {
    width: 270px;
    height: 270px;
    bottom: -155px;
    left: -100px;
    background: rgba(119, 91, 182, 0.20);
}

.login-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(45px, 8vh, 78px);
}

.login-brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #cd64c3, #874693);
    box-shadow:
        0 14px 34px rgba(202, 92, 191, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 950;
}

.login-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.login-brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.login-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f1c3ed;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.login-showcase h1 {
    max-width: 620px;
    margin: 19px 0 16px;
    color: #fff;
    font-size: clamp(39px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.login-showcase-content > p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.75;
}

.login-feature-list {
    display: grid;
    gap: 12px;
    margin-top: clamp(32px, 6vh, 55px);
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 590px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(9px);
}

.login-feature-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 12px;
    color: #ecc0e8;
    background: rgba(210, 103, 199, 0.13);
}

.login-feature-icon svg,
.login-input-icon svg,
.password-toggle svg,
.login-submit svg,
.login-security-icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.login-feature strong {
    color: #fff;
    font-size: 13px;
}

.login-feature small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 11px;
    line-height: 1.45;
}

.login-showcase-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.login-footer-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    background:
        radial-gradient(circle at 100% 0, rgba(183, 102, 178, 0.09), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 250, 0.94));
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 850;
}

.login-card-header h2 {
    margin: 16px 0 8px;
    color: #281639;
    font-size: clamp(29px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.login-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field label {
    margin: 0 0 8px;
    color: #3c2a46;
    font-size: 13px;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-label-row > span {
    color: #a095a6;
    font-size: 10px;
    font-weight: 750;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    display: grid;
    place-items: center;
    color: #9a8b9f;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrap input {
    min-height: 56px;
    padding: 13px 49px 13px 47px;
    border: 1px solid rgba(117, 75, 122, 0.16);
    border-radius: 15px;
    color: #2e1d39;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 8px 22px rgba(59, 31, 68, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-input-wrap input::placeholder {
    color: #b0a6b3;
}

.login-input-wrap input:focus {
    border-color: rgba(145, 74, 152, 0.55);
    box-shadow:
        0 0 0 4px rgba(145, 74, 152, 0.10),
        0 10px 25px rgba(59, 31, 68, 0.06);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 9px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #8f8294;
    background: transparent;
    transform: translateY(-50%);
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.login-submit {
    justify-content: space-between;
    min-height: 57px;
    margin-top: 3px;
    padding: 13px 18px 13px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #a442aa, #73387b);
    box-shadow:
        0 16px 30px rgba(132, 61, 139, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-submit:hover {
    box-shadow:
        0 19px 34px rgba(132, 61, 139, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-submit svg {
    width: 20px;
    height: 20px;
}

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid rgba(119, 74, 124, 0.10);
    color: #958a99;
    font-size: 10px;
    line-height: 1.55;
}

.login-security-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 9px;
    color: var(--success-dark);
    background: var(--success-soft);
}

.login-security-icon svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 980px) {
    .auth-page-content {
        width: min(100% - 28px, 760px);
        padding: 20px 0;
    }

    .login-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .login-showcase {
        min-height: auto;
        padding: 32px;
    }

    .login-brand {
        margin-bottom: 34px;
    }

    .login-showcase h1 {
        max-width: 660px;
        font-size: clamp(37px, 8vw, 54px);
    }

    .login-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 32px;
    }

    .login-feature {
        align-items: flex-start;
        padding: 13px;
    }

    .login-feature small {
        display: none;
    }

    .login-showcase-footer {
        padding-top: 25px;
    }

    .login-card {
        padding: 40px 34px;
    }
}

@media (max-width: 680px) {
    .page-surface {
        min-height: auto;
        padding: 17px;
        border-radius: 20px;
    }

    .page-surface > .page-header {
        margin: 0 0 20px;
        padding: 0 0 18px;
    }

    .auth-page-content {
        width: min(100% - 16px, 760px);
        padding: 8px 0;
    }

    .login-layout {
        border-radius: 22px;
    }

    .login-showcase {
        padding: 25px 21px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .login-eyebrow {
        font-size: 9px;
    }

    .login-showcase h1 {
        margin-top: 15px;
        font-size: 35px;
        letter-spacing: -1.3px;
    }

    .login-showcase-content > p {
        font-size: 13px;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .login-feature {
        align-items: center;
    }

    .login-feature small {
        display: block;
    }

    .login-showcase-footer {
        display: none;
    }

    .login-card {
        padding: 30px 21px;
    }

    .login-card-header {
        margin-bottom: 23px;
    }

    .login-card-header h2 {
        font-size: 29px;
    }

    .login-input-wrap input {
        min-height: 54px;
    }
}

@media (max-width: 410px) {
    .login-showcase h1 {
        font-size: 31px;
    }

    .login-showcase-content > p {
        line-height: 1.65;
    }

    .login-feature:nth-child(3) {
        display: none;
    }

    .login-card {
        padding: 27px 17px;
    }
}

/* =========================================================
   V3: müşteri-hizmet akışı ve gelişmiş formlar
   ========================================================= */

[hidden] {
    display: none !important;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin-bottom: 9px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.form-section {
    padding: 0 0 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.form-section-heading > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 9px 20px rgba(145, 74, 152, 0.20);
    font-size: 13px;
    font-weight: 900;
}

.form-section-heading h2,
.section-block-header h2 {
    margin: 0 0 5px;
    color: #301940;
    font-size: 20px;
    line-height: 1.2;
}

.form-section-heading p,
.section-block-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.compact-heading {
    margin-bottom: 17px;
}

.compact-heading > span {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
}

.form-grid-tight {
    gap: 10px;
}

.field-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.field-title-row label {
    margin-bottom: 2px;
}

.service-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 11px;
}

.service-check-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.service-check-card:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 74, 152, 0.27);
    box-shadow: 0 10px 25px rgba(61, 31, 72, 0.07);
}

.service-check-card:has(input:checked) {
    border-color: rgba(145, 74, 152, 0.38);
    background: linear-gradient(145deg, rgba(249, 239, 249, 0.96), rgba(255, 255, 255, 0.90));
    box-shadow: 0 11px 27px rgba(126, 58, 133, 0.10);
}

.service-check-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.service-check-mark {
    width: 23px;
    height: 23px;
    position: relative;
    flex: 0 0 23px;
    border: 1px solid rgba(124, 74, 130, 0.25);
    border-radius: 8px;
    background: #fff;
    transition:
        border-color 0.16s ease,
        background 0.16s ease;
}

.service-check-card input:checked + .service-check-mark {
    border-color: var(--primary);
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.service-check-card input:checked + .service-check-mark::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 4px;
    top: 7px;
    left: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.service-check-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-check-copy strong {
    color: #34203f;
    font-size: 13px;
    line-height: 1.3;
}

.service-check-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.money-input {
    position: relative;
}

.money-input input {
    padding-right: 50px;
}

.money-input > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    transform: translateY(-50%);
    pointer-events: none;
}

.consent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 19px;
}

.compact-consent-grid {
    margin-top: 16px;
}

.consent-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
}

.consent-card input {
    width: 18px;
    height: 18px;
    min-height: auto;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.consent-card > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.consent-card strong {
    color: #3a2844;
    font-size: 12px;
}

.consent-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.existing-customer-notice {
    padding: 13px 15px;
    border: 1px solid #efd47d;
    border-radius: 13px;
    color: #75530b;
    background: #fff7db;
    font-size: 12px;
    line-height: 1.55;
}

.existing-customer-notice a {
    color: var(--primary-dark);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.customer-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 23px;
}

.mode-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.mode-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.mode-option > span {
    display: flex;
    flex-direction: column;
    min-height: 82px;
    padding: 16px;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.69);
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.mode-option:hover > span {
    transform: translateY(-2px);
    border-color: rgba(145, 74, 152, 0.27);
}

.mode-option input:checked + span {
    border-color: rgba(145, 74, 152, 0.42);
    background: linear-gradient(145deg, var(--primary-soft), rgba(255, 255, 255, 0.91));
    box-shadow: 0 12px 28px rgba(126, 58, 133, 0.11);
}

.mode-option strong {
    color: #34203f;
    font-size: 14px;
}

.mode-option small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.appointment-customer-panel {
    margin-bottom: 25px;
    padding: 19px;
    border: 1px solid rgba(124, 74, 130, 0.11);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.53);
}

.section-block {
    margin-top: 24px;
}

.section-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.72fr);
    align-items: start;
    gap: 20px;
}

.sticky-form-card {
    position: sticky;
    top: 28px;
}

.section-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(253, 250, 253, 0.91));
    box-shadow: 0 12px 30px rgba(61, 31, 72, 0.08);
}

.table-wrapper-flat {
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.table-wrap-cell {
    max-width: 330px;
    white-space: normal;
    line-height: 1.45;
}

.table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.table-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.table-pill-primary {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.table-pill-success,
.table-pill-completed {
    color: #087342;
    background: var(--success-soft);
}

.table-pill-planned {
    color: #8a6000;
    background: var(--warning-soft);
}

.table-pill-active {
    color: #315f9b;
    background: #e8f1ff;
}

.table-pill-cancelled,
.table-pill-muted {
    color: #706875;
    background: var(--cancelled-soft);
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid rgba(145, 74, 152, 0.16);
    border-radius: 10px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.table-action-link:hover {
    border-color: rgba(145, 74, 152, 0.32);
}

.continuation-slot {
    opacity: 0.90;
}

.continuation-slot::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.15;
}

@media (max-width: 1180px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sticky-form-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .service-check-grid {
        grid-template-columns: 1fr;
    }

    .customer-mode-switch,
    .consent-grid {
        grid-template-columns: 1fr;
    }

    .section-block-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .form-section-heading {
        gap: 10px;
    }

    .form-section-heading > span {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .appointment-customer-panel,
    .section-card {
        padding: 14px;
        border-radius: 15px;
    }

    .mode-option > span {
        min-height: 74px;
        padding: 14px;
    }
}
