/* ==========================================================
   Spor Salonu Takip — Tasarım Sistemi
   ========================================================== */

:root {
    --lacivert: #0f172a;
    --lacivert-2: #1e293b;
    --vurgu: #c9f24b;          /* enerjik lime */
    --vurgu-koyu: #b2dd35;
    --zemin: #f3f5f9;
    --metin: #1e293b;
    --soluk: #64748b;
    --cizgi: #e6e9f0;
    --radius: 1rem;
    --golge: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -14px rgba(15, 23, 42, .14);
}

body {
    background: var(--zemin);
    color: var(--metin);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: .95rem;
}

/* ---------- Yerleşim: kenar menü + içerik ---------- */

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 256px;
    flex-shrink: 0;
    background-color: var(--lacivert);
    background-image:
        radial-gradient(30rem 18rem at -20% -10%, rgba(201, 242, 75, .12), transparent),
        linear-gradient(180deg, #0f172a 0%, #16203a 100%);
    color: #cbd5e1;
    border: none;
    --bs-offcanvas-width: 256px;
    --bs-offcanvas-bg: var(--lacivert);
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

.sidebar-ic {
    min-height: 100%;
}

.marka {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.marka-ikon {
    width: 38px;
    height: 38px;
    border-radius: .75rem;
    background: var(--vurgu);
    color: var(--lacivert);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px -6px rgba(201, 242, 75, .55);
}

.sidebar .nav-link {
    color: #94a3b8;
    font-weight: 600;
    font-size: .9rem;
    border-radius: .65rem;
    padding: .6rem .85rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    transition: background .15s, color .15s;
}

.sidebar .nav-link i {
    font-size: 1.05rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.sidebar .nav-link.active {
    background: var(--vurgu);
    color: var(--lacivert);
}

.sidebar .ayirici {
    border-color: rgba(255, 255, 255, .12);
    opacity: 1;
}

.sidebar .btn-close {
    filter: invert(1);
}

/* Mobil üst bar */
.ust-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--cizgi);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.icerik {
    flex: 1;
    min-width: 0;
}

.icerik-ic {
    padding: 1.75rem 1.5rem 3rem;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .icerik-ic {
        padding: 2.25rem 2.5rem 3rem;
    }
}

/* ---------- Sayfa başlığı ---------- */

.sayfa-baslik h1 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .15rem;
}

.sayfa-baslik .alt {
    color: var(--soluk);
    font-size: .875rem;
    margin: 0;
}

/* ---------- Kartlar ---------- */

.card {
    border: 1px solid var(--cizgi);
    border-radius: var(--radius);
    box-shadow: var(--golge);
    overflow: hidden;
}

.card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--cizgi);
    font-weight: 700;
    padding: .9rem 1.25rem;
}

/* Panel liste başlıkları */
.liste-baslik {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 700;
    font-size: .95rem;
    padding: .95rem 1.25rem;
    border-bottom: 1px solid var(--cizgi);
    background: #fff;
}

.lb-ikon {
    width: 34px;
    height: 34px;
    border-radius: .65rem;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.liste-baslik.uyari .lb-ikon { background: #fef3c7; color: #b45309; }
.liste-baslik.tehlike .lb-ikon { background: #fee2e2; color: #b91c1c; }

.lb-adet {
    margin-left: auto;
    background: #f1f5f9;
    color: var(--soluk);
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 99px;
}

/* ---------- Özet kutuları ---------- */

.ozet-kart .card-body {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.2rem;
}

.ozet-ikon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.ikon-lacivert { background: #e2e8f0; color: var(--lacivert); }
.ikon-yesil    { background: #dcfce7; color: #15803d; }
.ikon-sari     { background: #fef3c7; color: #b45309; }
.ikon-lime     { background: #ecfccb; color: #4d7c0f; }

.ozet-kart .sayi {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.ozet-kart .sayi.kucuk {
    font-size: 1.15rem;
}

.ozet-kart .etiket {
    color: var(--soluk);
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Tablolar ---------- */

.table {
    margin-bottom: 0;
    --bs-table-hover-bg: #f8fafc;
}

.table thead th,
.table .table-light th {
    background: #f8fafc !important;
    color: var(--soluk);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid var(--cizgi);
    padding: .7rem 1.1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: .85rem 1.1rem;
    border-color: #eef1f6;
}

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

/* ---------- Rozetler (yumuşak renkler) ---------- */

.badge {
    font-weight: 700;
    font-size: .74rem;
    padding: .4em .7em;
    border-radius: .55rem;
}

.badge.bg-success   { background: #dcfce7 !important; color: #15803d !important; }
.badge.bg-warning   { background: #fef3c7 !important; color: #b45309 !important; }
.badge.bg-danger    { background: #fee2e2 !important; color: #b91c1c !important; }
.badge.bg-secondary { background: #e2e8f0 !important; color: #475569 !important; }

/* ---------- Butonlar ---------- */

.btn {
    border-radius: .65rem;
    font-weight: 700;
    font-size: .875rem;
    padding: .5rem 1rem;
}

.btn-sm {
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: .55rem;
}

.btn-primary {
    --bs-btn-bg: var(--lacivert);
    --bs-btn-border-color: var(--lacivert);
    --bs-btn-hover-bg: var(--lacivert-2);
    --bs-btn-hover-border-color: var(--lacivert-2);
    --bs-btn-active-bg: var(--lacivert-2);
    --bs-btn-active-border-color: var(--lacivert-2);
}

.btn-success {
    --bs-btn-bg: #16a34a;
    --bs-btn-border-color: #16a34a;
    --bs-btn-hover-bg: #15803d;
    --bs-btn-hover-border-color: #15803d;
    --bs-btn-active-bg: #15803d;
    --bs-btn-active-border-color: #15803d;
}

.btn-vurgu {
    --bs-btn-bg: var(--vurgu);
    --bs-btn-border-color: var(--vurgu);
    --bs-btn-color: var(--lacivert);
    --bs-btn-hover-bg: var(--vurgu-koyu);
    --bs-btn-hover-border-color: var(--vurgu-koyu);
    --bs-btn-hover-color: var(--lacivert);
    --bs-btn-active-bg: var(--vurgu-koyu);
    --bs-btn-active-border-color: var(--vurgu-koyu);
    --bs-btn-active-color: var(--lacivert);
}

/* ---------- Formlar ---------- */

.form-label {
    font-weight: 700;
    font-size: .82rem;
    color: var(--metin);
    margin-bottom: .35rem;
}

.form-control, .form-select {
    border-radius: .65rem;
    border-color: #dbe1ec;
    padding: .55rem .85rem;
    font-size: .9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--lacivert);
    box-shadow: 0 0 0 .22rem rgba(15, 23, 42, .08);
}

.form-text {
    font-size: .78rem;
}

.alert {
    border-radius: .75rem;
    font-size: .88rem;
}

/* ---------- Avatarlar ---------- */

.avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .8rem;
    color: #fff;
}

.avatar-lg {
    width: 58px;
    height: 58px;
    font-size: 1.15rem;
}

.avatar.r0 { background: #6366f1; }
.avatar.r1 { background: #0ea5e9; }
.avatar.r2 { background: #10b981; }
.avatar.r3 { background: #f59e0b; }
.avatar.r4 { background: #ec4899; }

/* ---------- Boş durumlar ---------- */

.bos-durum {
    text-align: center;
    color: var(--soluk);
    padding: 2.5rem 1rem;
}

.bos-durum i {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
    opacity: .55;
}

.bos-durum p {
    margin: 0;
    font-weight: 600;
    font-size: .9rem;
}

/* ---------- Giriş sayfası ---------- */

.giris-sayfasi {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background-color: var(--lacivert);
    background-image:
        radial-gradient(55rem 30rem at 85% -10%, rgba(201, 242, 75, .16), transparent),
        radial-gradient(40rem 26rem at -10% 110%, rgba(99, 102, 241, .22), transparent);
}

.giris-kutu {
    width: 100%;
    max-width: 420px;
}

.giris-marka {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.giris-kutu .card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

.giris-kutu h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* ---------- Ufak dokunuşlar ---------- */

code {
    background: #f1f5f9;
    color: #334155;
    padding: .15em .45em;
    border-radius: .4rem;
    font-size: .82em;
}

a {
    color: #4338ca;
}

.table a {
    color: var(--metin);
}

.table a:hover {
    color: #4338ca;
}
