:root {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
    --sidebar-bg: #1e1b2e;
    --sidebar-fg: #cbd5e1;
}

body {
    background: #f5f6fa;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #1e293b;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: var(--sidebar-fg);
    display: flex;
    flex-direction: column;
    padding: 1rem .75rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    padding: .5rem .75rem 1.25rem;
    letter-spacing: .3px;
}
.brand span { color: var(--brand); }
.brand i { color: var(--brand); margin-right: .35rem; }

.sidebar .nav-link {
    color: var(--sidebar-fg);
    border-radius: .5rem;
    padding: .6rem .8rem;
    margin-bottom: .15rem;
    font-size: .93rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background .15s;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }

/* Menü uzayınca kaydırılabilsin (alttaki kayıtlar kesilmesin). */
#sidebarNav {
    flex: 1 1 auto;
    min-height: 0;
    flex-wrap: nowrap;   /* .nav varsayılan flex-wrap:wrap → öğeler yana sütuna sarmasın */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
#sidebarNav::-webkit-scrollbar { width: 6px; }
#sidebarNav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
#sidebarNav::-webkit-scrollbar-track { background: transparent; }

/* Açılır grup (Tanımlar) ve alt menü */
.sidebar .nav-collapse { display: none; }
.sidebar .nav-collapse.show { display: block; }
.sidebar .nav-group-toggle { cursor: pointer; }
.sidebar .nav-group-toggle .chevron { font-size: .72rem; transition: transform .2s; }
.sidebar .nav-group-toggle.collapsed .chevron { transform: rotate(-90deg); }
.sidebar .submenu {
    margin: .1rem 0 .25rem .55rem;
    padding-left: .55rem;
    border-left: 1px solid rgba(255,255,255,.1);
}
.sidebar .submenu .nav-link { font-size: .88rem; padding: .5rem .7rem; }

/* Aranabilir açılır liste (searchable-select.js) */
.ss-wrap { position: relative; }
select.ss-native { display: none !important; }
/* Konum JS ile verilir (fixed) — .table-responsive gibi overflow'lu kapsayıcılar
   absolute konumlu menüyü kırpıyordu. */
.ss-menu {
    position: fixed; z-index: 1055;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem;
    max-height: 260px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none;
}
.ss-menu.show { display: block; }
.ss-item { padding: .5rem .8rem; cursor: pointer; font-size: .9rem; }
.ss-item:hover { background: var(--brand); color: #fff; }
.ss-hint { padding: .5rem .8rem; color: #94a3b8; font-size: .85rem; }

.sidebar-foot { margin-top: auto; padding: .75rem; }
.sidebar-foot a { text-decoration: none; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
}

.content { padding: 1.5rem; }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.page-head h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }

.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: .75rem; }

.stat-card { padding: 1.1rem 1.25rem; }
.stat-card .label { color: #64748b; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }
.stat-card .icon { font-size: 1.6rem; opacity: .35; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.table > :not(caption) > * > * { padding: .65rem .75rem; }
.badge-status { font-weight: 600; }

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    padding: 1rem;
}
.auth-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.25rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1040;
        left: -260px;
        transition: left .2s;
    }
    .sidebar.open { left: 0; }
}


/* --- Profil / fotoğraf --- */

/* Üst çubuktaki kullanıcı bağlantısı */
.topbar-user {
    display: inline-flex; align-items: center; gap: .5rem;
    color: #475569; font-size: .88rem; text-decoration: none;
    padding: .2rem .5rem; border-radius: 2rem;
    transition: background .15s, color .15s;
}
.topbar-user:hover { background: #f1f5f9; color: var(--brand); }
.topbar-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    object-fit: cover; background: #e2e8f0;
}
.topbar-avatar-icon { font-size: 1.35rem; line-height: 1; color: #94a3b8; }

/* Fotoğraf seçici (profil ve personel formu) */
.photo-picker { display: flex; align-items: flex-start; gap: 1rem; }
.photo-preview {
    width: 96px; height: 96px; flex: 0 0 auto;
    border-radius: 50%; overflow: hidden;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview i { font-size: 2.4rem; color: #cbd5e1; }

/* Listelerde küçük avatar */
.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; background: #e2e8f0; flex: 0 0 auto;
}
.avatar-sm-icon { font-size: 1.5rem; color: #cbd5e1; }


/* --- Belirgin doğrulama uyarısı (randevu çakışması vb.) --- */

/* Hata yokken ASP.NET .validation-summary-valid sınıfını ekler → kutuyu gizle. */
.validation-alert.validation-summary-valid { display: none; }

.validation-alert {
    display: flex; align-items: flex-start; gap: .6rem;
    border: 0; border-left: 5px solid #b91c1c;
    background: #fee2e2; color: #7f1d1d;
    font-weight: 500; padding: .75rem 1rem; margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(185,28,28,.15);
}
/* Uyarı ikonu — her satır için değil, kutunun başında bir kez. */
.validation-alert::before {
    content: "\F33A";                 /* bi-exclamation-triangle-fill */
    font-family: "bootstrap-icons";
    font-size: 1.15rem; line-height: 1.3; flex: 0 0 auto;
}
.validation-alert ul { margin: 0; padding-left: 1.1rem; }
.validation-alert ul li { list-style: disc; }
/* Tek satırlık uyarıda madde işareti gösterme. */
.validation-alert ul li:only-child { list-style: none; margin-left: -1.1rem; }


/* --- Memnuniyet değerlendirmeleri --- */
.rating-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.rating-stars .bi-star { color: #dbe0e7; }

/* Uzun yorumlar listeyi bozmasın; tamamı hover ipucunda. */
.survey-comment {
    display: inline-block; max-width: 320px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    vertical-align: bottom;
}

.survey-entry { padding: .5rem 0; border-bottom: 1px solid #f1f3f7; }
.survey-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.survey-quote-panel {
    background: #f8fafc; border-left: 3px solid #f59e0b;
    border-radius: .4rem; padding: .55rem .8rem; margin: .5rem 0 0;
    font-size: .88rem; color: #475569;
}

/* Dar sütunlarda ortalama puan — yıldız dizisi yerine "4,3★" */
.rating-compact {
    display: inline-flex; align-items: center; gap: .15rem;
    font-weight: 600; color: #b45309; white-space: nowrap;
}
.rating-compact i { color: #f59e0b; font-size: .8em; }

/* Üst çubukta kalan SMS kredisi */
.sms-credit {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600; color: #475569; text-decoration: none;
    background: #f1f5f9; border-radius: 2rem; padding: .25rem .7rem;
    transition: background .15s, color .15s;
}
.sms-credit:hover { background: #e2e8f0; color: var(--brand); }
.sms-credit i { color: #94a3b8; font-size: .95em; }
.sms-credit.low { background: #fee2e2; color: #b91c1c; }
.sms-credit.low i { color: #dc2626; }

/* Açılır menü öğelerinde ikinci satır açıklama */
.dropdown-item { display: block; }
.dropdown-hint { font-size: .76rem; color: #94a3b8; margin-left: 1.35rem; }
.dropdown-item:hover .dropdown-hint, .dropdown-item:focus .dropdown-hint { color: #64748b; }

/* Üst çubukta lisans süresi */
.license-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600; color: #475569;
    background: #f1f5f9; border-radius: 2rem; padding: .25rem .7rem;
}
.license-badge i { color: #94a3b8; font-size: .95em; }
.license-badge.low { background: #fef3c7; color: #92400e; }
.license-badge.low i { color: #d97706; }
.license-badge.expired { background: #fee2e2; color: #b91c1c; }
.license-badge.expired i { color: #dc2626; }

/* Memnuniyet butonu — dolu sarı; hover'da koyu amber (yıldız rengiyle uyumlu) */
.btn-satisfaction {
    background: #f59e0b; border: 1px solid #f59e0b; color: #422006;
    font-weight: 600;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-satisfaction:hover, .btn-satisfaction:focus {
    background: #b45309; border-color: #b45309; color: #fff;
    box-shadow: 0 2px 8px rgba(180,83,9,.25);
}
.btn-satisfaction:active { background: #92400e; border-color: #92400e; color: #fff; }
