/* İyilik Hali Ölçek — Uygulama stilleri */
/* Teal renk paleti ve genel tasarım değişkenleri */
:root {
    --ink: #06919D;
    --ink-dark: #057A84;
    --ink-light: #e6f7f8;
    --sand: #F6F4EF;
    --text-main: #1a2e30;
    --text-muted: #6c757d;
    --sidebar-bg: #0f1718;
    --sidebar-width: 240px;
    --font-body: 'Public Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(6,145,157,.10);
}

/* Genel font ayarı */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--sand);
}

/* Yükleme ekranı */
.scale-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
}

.scale-loading-inner {
    text-align: center;
    color: white;
}

.scale-loading-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .9;
}

.scale-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 1rem;
}

.scale-loading-text {
    font-size: .9rem;
    opacity: .8;
    margin: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Blazor hata kutusu */
#blazor-error-ui {
    background: #fee;
    border: 1px solid #f88;
    border-radius: 6px;
    bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: none;
    left: 50%;
    transform: translateX(-50%);
    padding: .75rem 1.25rem;
    position: fixed;
    z-index: 9999;
    font-size: .85rem;
}

#blazor-error-ui .reload { color: var(--ink); font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; margin-left: 1rem; }

/* ─── Shell (sidebar + topbar + content) ─── */
.scale-shell {
    display: flex;
    min-height: 100vh;
}

/* Yan menü */
.scale-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #d8e6e7;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.scale-sidebar .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.scale-sidebar .brand .mdi {
    font-size: 1.4rem;
    color: var(--ink);
}

.scale-sidebar nav {
    flex: 1;
    padding: 1rem 0;
}

.scale-sidebar nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 1.25rem;
    color: #9bc4c7;
    text-decoration: none;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: all .15s;
}

.scale-sidebar nav a:hover,
.scale-sidebar nav a.active {
    background: rgba(6,145,157,.15);
    color: white;
    border-left-color: var(--ink);
}

.scale-sidebar nav a .mdi {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.scale-sidebar .sidebar-footer {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.scale-sidebar .sidebar-footer a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #9bc4c7;
    font-size: .85rem;
    text-decoration: none;
    padding: .4rem 0;
    cursor: pointer;
}

.scale-sidebar .sidebar-footer a:hover { color: #f77; }

/* İçerik alanı */
.scale-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Üst çubuk */
.scale-topbar {
    background: white;
    border-bottom: 1px solid #e8ecec;
    padding: .75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.scale-topbar .page-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
}

.scale-topbar .user-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.scale-topbar .user-badge .mdi {
    font-size: 1.1rem;
    color: var(--ink);
}

/* Ana içerik padding */
.scale-main {
    flex: 1;
    padding: 2rem;
}

/* ─── Ölçek kartları ─── */
.olcek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.olcek-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid #e8ecec;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.olcek-card:hover {
    box-shadow: 0 4px 20px rgba(6,145,157,.18);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.olcek-card-icon {
    width: 48px;
    height: 48px;
    background: var(--ink-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.olcek-card-icon .mdi {
    font-size: 1.5rem;
    color: var(--ink);
}

.olcek-card h5 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--text-main);
}

.olcek-card p {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
    line-height: 1.5;
}

.olcek-card .badge-soru {
    font-size: .75rem;
    background: var(--ink-light);
    color: var(--ink-dark);
    padding: .2rem .55rem;
    border-radius: 20px;
    font-weight: 500;
}

/* ─── Doldurma sayfası ─── */
.soru-kart {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e8ecec;
}

.soru-numarasi {
    font-size: .78rem;
    color: var(--ink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.soru-metin {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.1rem;
}

/* Likert seçenekleri yatay sıralama */
.likert-secenekler {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.likert-secenekler input[type="radio"] {
    display: none;
}

.likert-label {
    border: 2px solid #dce8e9;
    border-radius: 8px;
    padding: .45rem 1rem;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-muted);
    background: white;
    user-select: none;
}

.likert-secenekler input[type="radio"]:checked + .likert-label {
    border-color: var(--ink);
    background: var(--ink-light);
    color: var(--ink-dark);
    font-weight: 600;
}

.likert-label:hover {
    border-color: var(--ink);
    color: var(--ink-dark);
}

/* İlerleme çubuğu */
.olcek-progress {
    height: 6px;
    border-radius: 3px;
    background: #e0eeef;
    margin-bottom: 2rem;
    overflow: hidden;
}

.olcek-progress-bar {
    height: 100%;
    background: var(--ink);
    border-radius: 3px;
    transition: width .3s ease;
}

/* ─── Rapor sayfası ─── */
.rapor-kart {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid #e8ecec;
    max-width: 640px;
    margin: 0 auto;
}

.rapor-puan-daire {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.rapor-puan-daire .puan-sayi {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.rapor-puan-daire .puan-label {
    font-size: .65rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.seviye-bant {
    border-radius: 8px;
    padding: .8rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .9rem;
    font-weight: 500;
}

.seviye-dusuk    { background: #e8f5e9; color: #2e7d32; }
.seviye-orta     { background: #fff8e1; color: #f57f17; }
.seviye-yuksek   { background: #fce4ec; color: #c62828; }
.seviye-cok-yuksek { background: #f3e5f5; color: #6a1b9a; }

.rapor-yorum {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
    border-top: 1px solid #e8ecec;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

/* ─── Giriş sayfası (EmptyLayout) ─── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1718 0%, #1a3436 100%);
    padding: 1.5rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card .login-logo .mdi {
    font-size: 3rem;
    color: var(--ink);
    display: block;
}

.login-card .login-logo h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin: .4rem 0 .2rem;
    color: var(--text-main);
}

.login-card .login-logo p {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
}

.login-card .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
}

.login-card .btn-ink {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
    width: 100%;
    padding: .65rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: .5rem;
}

.login-card .btn-ink:hover {
    background: var(--ink-dark);
    border-color: var(--ink-dark);
    color: white;
}

/* Genel butonlar */
.btn-teal {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
    font-weight: 500;
    border-radius: 8px;
}

.btn-teal:hover {
    background: var(--ink-dark);
    border-color: var(--ink-dark);
    color: white;
}

.btn-outline-teal {
    border-color: var(--ink);
    color: var(--ink);
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-teal:hover {
    background: var(--ink);
    color: white;
}

/* Sayfa başlığı */
.page-header {
    margin-bottom: 1.75rem;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: .25rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0;
}

/* Uyarı/bilgi kutusu */
.bilgi-kutu {
    background: var(--ink-light);
    border: 1px solid rgba(6,145,157,.25);
    border-radius: 8px;
    padding: .9rem 1.1rem;
    font-size: .87rem;
    color: var(--ink-dark);
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.bilgi-kutu .mdi {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: .05rem;
}
