/* ===========================================================================
   ANTRENMAN MERKEZI - ORTAK STIL DOSYASI (common.css)
   Bu dosya sporcu.html ve antrenor.html arasinda paylasilan TUM ortak stilleri
   icerir: renk paleti, nav, tab-bar, kartlar, formlar, butonlar, takvim, toast vb.
   Sayfaya ozel stiller (orn. yoklama ekrani, sporcu istatistik grafikleri) ilgili
   .html dosyasinin kendi <style> blogunda kalir.
   =========================================================================== */

:root {
    /* Yarış saati / skorbord karakteri: tüm derece, PB, sıralama ve metrik
       değerleri bu yazı tipiyle gösterilir - gövde metni sistem fontunda kalır,
       sadece SAYISAL değerler bu belirgin, teknik karaktere sahip. */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    /* Marka - Modern & Minimalist Light Mode
       Taban rengi saf beyaz DEGIL (goz yormaz); kartlar saf beyazda, ince/yumusak
       golge ve sinirla ana zeminden ayrisir. Ana metin saf siyah degil, yumusak koyu
       lacivert-gri; ikincil metin notr gri. Vurgu rengi: safir mavi. */
    --deep: #1D4ED8;        /* koyu safir - header/hero gradyani, aktif/basili durumlar */
    --teal: #3B82F6;        /* ANA vurgu rengi - safir mavi (butonlar, aktif sekme, linkler) */
    --aqua: #60A5FA; /* ikincil vurgu - acik mavi (ikonlar, odak halkasi) */
    --mist: #EFF6FF;        /* yumusak mavi tint - rozet/etiket zeminleri */
    --foam: #F4F6F8;        /* sayfa arka plani - yumusak soguk gri (saf beyaz degil) */
    --ink: #1E293B;         /* ana metin rengi - yumusak koyu lacivert-gri (saf siyah degil) */
    --slate: #64748B;       /* ikincil metin rengi - notr gri */
    --line: #E2E8F0;        /* kenarlik / ayrac - ince ve acik */
    --white: #FFFFFF;       /* saf beyaz - renkli/vurgu yuzeyler uzerindeki metin/ikon icin (degismez) */
    --surface: #FFFFFF;     /* kart/bilesen yuzeyi - saf beyaz, ana zeminden golge/sinirla ayrisir */
    --slate-fill: #64748B;  /* --slate metin rengi acik zeminde okunakli oldugu icin, uzerine beyaz metin gereken notr rozet/buton zeminleri de ayni tonu kullanir */
    --green: #10B981;       /* Basarili / Guvenli Durum */
    --green-bg: #ECFDF5;
    --red: #EF4444;         /* Uyari / Kritik Durum */
    --red-bg: #FEF2F2;
    --amber: #F59E0B;       /* Uyari / Gecis Durumu */
    --amber-bg: #FFFBEB;
}

* {
    box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%; max-width: 100%; background-color: var(--foam);
                color: var(--ink);
                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
                overflow-x: hidden;
                overscroll-behavior-x: none;
                touch-action: pan-y;
}

img, canvas, svg, video {
    max-width: 100%;
}

nav {
    width: 100%;
                background: var(--surface);
                border-bottom: 1px solid var(--line);
                padding: 0 18px;
                position: sticky; top: 0; z-index: 100;
                display: flex; align-items: center; justify-content: space-between;
                height: 56px;
}

.nav-title {
    font-size: 18px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink);
}

.nav-badge {
    background: var(--mist);
                color: var(--teal); font-size: 11px; font-weight: 700;
                padding: 4px 11px; border-radius: 20px;
                letter-spacing: 0.3px;
}

.nav-logout {
    background: none; border: none;
                color: var(--red); font-size: 13px; font-weight: 600;
                cursor: pointer; display: flex; align-items: center; gap: 5px;
                padding: 7px 11px; border-radius: 10px;
                font-family: inherit; transition: background 0.15s;
}

.nav-logout:active {
    background: var(--red-bg);
}

.ios-tab-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
                background: var(--surface);
                border-top: 1px solid var(--line);
                display: flex; justify-content: space-around;
                padding: 9px 0 calc(9px + env(safe-area-inset-bottom,0px)) 0;
                z-index: 1000;
                box-shadow: 0 -2px 16px rgba(20,20,20,0.05);
}

.tab-item {
    display: flex; flex-direction: column; align-items: center;
                background: none; border: none;
                color: #9FB3B6; font-size: 9.5px; font-weight: 600;
                cursor: pointer; gap: 4px; flex: 1; font-family: inherit;
                transition: color 0.15s;
                padding: 0 2px;
}

.tab-item i {
    font-size: 18px;
}

.tab-item.active {
    color: var(--teal);
}

.container {
    width: 100%; padding-bottom: 90px; max-width: 640px; margin: 0 auto;
}

.ios-card {
    width: calc(100% - 28px);
                margin: 14px auto 0;
                background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 18px;
                padding: 22px 20px;
                box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.section-start {
    margin-top: 16px;
}

.card-tag {
    font-size: 11px; font-weight: 700;
                text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 7px;
}

.tag-admin {
    color: var(--amber);
}

.tag-water {
    color: var(--teal);
}

.tag-land {
    color: var(--green);
}

.tag-stats {
    color: var(--aqua);
}

.card-title {
    font-size: 19px; font-weight: 700;
                letter-spacing: -0.4px; color: var(--ink); margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block; font-size: 13px; font-weight: 600;
                color: var(--slate); margin-bottom: 7px;
}

textarea, input[type="text"], input[type="number"],
        input[type="password"], input[type="date"], input[type="email"] {
    width: 100%;
                background: var(--foam);
                border: 1.5px solid var(--line);
                border-radius: 11px;
                padding: 12px 13px;
                font-size: 15px; color: var(--ink);
                outline: none; font-family: inherit;
                transition: all 0.2s;
}

textarea:focus, input:focus {
    border-color: var(--aqua); background: var(--surface);
}

input[type="file"] {
    background: var(--foam); border: 1.5px dashed var(--line);
                padding: 11px; font-size: 13px; color: var(--slate);
}

.btn {
    width: 100%; padding: 14px;
                border-radius: 12px; border: none;
                font-size: 15px; font-weight: 600;
                cursor: pointer; font-family: inherit;
                color: var(--white); transition: all 0.15s;
                letter-spacing: -0.2px;
}

.btn:active {
    transform: scale(0.99);
}

.btn-orange {
    background: var(--amber);
}

.btn-orange:active {
    background: #C97F2C;
}

.btn-blue {
    background: var(--teal);
}

.btn-blue:active {
    background: var(--deep);
}

.btn-green {
    background: var(--green);
}

.btn-green:active {
    background: #257E69;
}

.btn-red {
    background: var(--red-bg); color: var(--red);
}

.btn-deep {
    background: var(--deep);
}

.btn-deep:active {
    background: #072A33;
}

.btn-aqua {
    background: var(--aqua);
}

.btn-aqua:active {
    background: #3A98A3;
}

.btn-slate {
    background: var(--slate-fill);
}

.btn-slate:active {
    background: #4A5F66;
}

.ex-admin-card {
    display: flex; align-items: center; gap: 12px;
                background: var(--foam);
                border: 1px solid var(--line);
                border-radius: 13px; padding: 12px;
                margin-bottom: 10px;
}

.ex-admin-thumb {
    width: 54px; height: 54px;
                border-radius: 11px; overflow: hidden;
                background: var(--mist); flex-shrink: 0;
                display: flex; align-items: center; justify-content: center;
}

.ex-admin-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

.ex-admin-info {
    flex: 1;
}

.ex-admin-name {
    font-size: 15px; font-weight: 600; color: var(--ink);
}

.ex-admin-meta {
    font-size: 13px; color: var(--slate); margin-top: 3px;
}

.btn-delete {
    width: 44px; height: 44px;
                background: var(--red-bg); border: none; border-radius: 9px;
                color: var(--red); font-size: 14px;
                cursor: pointer; display: flex; align-items: center; justify-content: center;
                flex-shrink: 0;
}

.autocomplete-box {
    position: absolute; top: calc(100% + 4px); left: 0; width: 100%;
                background: var(--surface); border: 1px solid var(--line);
                border-radius: 13px; box-shadow: 0 8px 24px rgba(20,20,20,0.14);
                max-height: 220px; overflow-y: auto;
                z-index: 20; display: none;
}

.suggest-item {
    display: flex; align-items: center; gap: 10px;
                padding: 11px 14px;
                font-size: 14px; color: var(--ink);
                cursor: pointer; border-bottom: 1px solid var(--line);
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:active {
    background: var(--foam);
}

.suggest-thumb {
    width: 44px; height: 44px;
                border-radius: 9px; object-fit: cover;
                background: var(--mist);
}

.yoklama-grid {
    display: flex; flex-direction: column; gap: 10px;
}

.yoklama-row {
    background: var(--foam);
                border: 1px solid var(--line);
                border-radius: 14px; padding: 14px;
}

.yoklama-top {
    display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 10px;
}

.sporcu-name {
    font-size: 16px; font-weight: 600; color: var(--ink);
}

.durum-selector {
    display: flex; gap: 6px;
}

.durum-btn {
    padding: 11px 16px; min-height: 44px;
                border-radius: 20px; border: none;
                font-size: 13px; font-weight: 700;
                cursor: pointer; font-family: inherit;
                transition: all 0.15s; white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

.durum-btn-geldi {
    background: var(--green-bg); color: var(--green);
}

.durum-btn-gelmedi {
    background: var(--red-bg); color: var(--red);
}

.durum-btn-yarista {
    background: var(--amber-bg); color: var(--amber);
}

.durum-btn.selected-geldi {
    background: var(--green); color: var(--white);
}

.durum-btn.selected-gelmedi {
    background: var(--red); color: var(--white);
}

.durum-btn.selected-yarista {
    background: var(--amber); color: var(--white);
}

.yoklama-tur-block {
    display: flex; flex-direction: row; align-items: stretch; gap: 10px;
}

.yoklama-row.yarista-active .kara-row {
    display: none;
}

.yoklama-tur-row {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    flex: 1 1 0; min-width: 0;
}

.yoklama-tur-row.kara-row {
    border-left: 1px solid var(--line); padding-left: 10px;
}

.yoklama-tur-label {
    font-size: 13px; font-weight: 700; color: var(--slate);
}

.durum-selector-2 {
    display: flex; gap: 6px; flex: 1;
}

.durum-selector-2 .durum-btn {
    flex: 1; text-align: center; padding-left: 8px; padding-right: 8px;
}

.durum-selector-3 {
    gap: 4px;
}

.durum-selector-3 .durum-btn {
    flex: 1; text-align: center; padding-left: 4px; padding-right: 4px;
    font-size: 12px;
}

.not-input {
    width: 100%; background: var(--surface);
                border: 1.5px solid var(--line);
                border-radius: 9px; padding: 10px 12px;
                font-size: 13px; color: var(--ink);
                outline: none; font-family: inherit;
                display: none;
}

.not-input.show {
    display: block;
}

.period-selector {
    display: flex; background: var(--mist);
                border-radius: 11px; padding: 3px; margin-bottom: 18px;
}

.period-btn {
    flex: 1; text-align: center; padding: 8px 0;
                border-radius: 8px; font-size: 13px; font-weight: 600;
                cursor: pointer; border: none;
                background: transparent; color: var(--slate); transition: all 0.2s; font-family: inherit;
}

.period-btn.active {
    background: var(--surface); color: var(--teal); box-shadow: 0 1px 4px rgba(20,20,20,0.1);
}

.sporcu-stat-card {
    background: var(--foam);
                border: 1px solid var(--line);
                border-radius: 14px; padding: 15px; margin-bottom: 10px;
}

.sporcu-stat-header {
    display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 12px;
}

.sporcu-stat-name {
    font-size: 15px; font-weight: 700; color: var(--ink);
}

.sporcu-stat-oran {
    font-size: 17px; font-weight: 700; color: var(--green);
}

.sporcu-stat-oran.low {
    color: var(--red);
}

.sporcu-stat-oran.mid {
    color: var(--amber);
}

.stat-mini-row {
    display: flex; gap: 6px;
}

.stat-mini-pill {
    flex: 1; text-align: center;
                background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 11px; padding: 9px 4px;
                font-size: 12px; font-weight: 600; color: var(--slate);
}

.stat-mini-pill span {
    display: block; font-size: 18px; font-weight: 700; margin-bottom: 2px;
}

.stat-mini-pill span.g {
    color: var(--green);
}

.stat-mini-pill span.gm {
    color: var(--red);
}

.stat-mini-pill span.y {
    color: var(--amber);
}

.stat-summary-row {
    display: flex; align-items: center; gap: 12px;
                cursor: pointer; user-select: none;
}

.stat-summary-info {
    flex: 1; min-width: 0;
}

.stat-counts {
    display: flex; gap: 14px; margin-top: 5px;
}

.stat-count {
    font-size: 13px; font-weight: 700;
                display: flex; align-items: center; gap: 5px;
}

.stat-count i {
    font-size: 8px;
}

.stat-count.g {
    color: var(--green);
}

.stat-count.gm {
    color: var(--red);
}

.stat-count.y {
    color: var(--amber);
}

.stat-chevron {
    color: #B7C9C9; font-size: 15px;
                transition: transform 0.25s ease;
                flex-shrink: 0;
}

.stat-chevron.rotated {
    transform: rotate(180deg);
}

.stat-detail {
    max-height: 0; overflow: hidden;
                transition: max-height 0.3s ease, margin-top 0.3s ease;
                margin-top: 0;
}

.stat-detail.open {
    margin-top: 18px;
}

.chart-section {
    margin-top: 16px;
}

.chart-section-title {
    font-size: 12px; font-weight: 700;
                color: var(--slate); text-transform: uppercase;
                letter-spacing: 0.4px; margin-bottom: 10px;
                display: flex; align-items: center; gap: 6px;
}

.donut-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.donut-box {
    background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 14px;
                padding: 12px 8px;
                text-align: center;
                min-width: 0;
}

.donut-box-label {
    font-size: 11px; font-weight: 700;
                color: var(--slate); text-transform: uppercase;
                letter-spacing: 0.3px; margin-bottom: 8px;
}

.donut-canvas-wrap {
    position: relative; width: 100%; height: 110px;
                min-width: 0;
}

.donut-canvas-wrap canvas {
    max-width: 100%;
}

.donut-empty {
    display: flex; align-items: center; justify-content: center;
                height: 120px; color: #B7C9C9; font-size: 12px;
}

.line-box {
    background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 14px;
                padding: 14px 12px;
}

.line-canvas-wrap {
    position: relative; width: 100%; height: 150px;
}

.chart-legend {
    display: flex; justify-content: center; gap: 14px;
                margin-top: 10px; flex-wrap: wrap;
}

.legend-item {
    display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--slate); font-weight: 600;
}

.legend-dot {
    width: 9px; height: 9px; border-radius: 50%;
}

.sporcu-manage-card {
    display: flex; align-items: center; gap: 12px;
                padding: 14px 0; border-bottom: 1px solid var(--line);
}

.sporcu-manage-card:last-child {
    border-bottom: none;
}

.manage-avatar {
    width: 42px; height: 42px;
                background: var(--teal);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                font-size: 16px; font-weight: 700; color: var(--white); flex-shrink: 0;
                overflow: hidden;
}

.manage-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.manage-info {
    flex: 1;
}

.manage-name {
    font-size: 15px; font-weight: 600; color: var(--ink);
}

.manage-email {
    font-size: 12px; color: var(--slate); margin-top: 2px;
}

.btn-icon {
    width: 44px; height: 44px;
                border: none; border-radius: 9px;
                font-size: 14px; cursor: pointer;
                display: flex; align-items: center; justify-content: center;
}

.ios-toast {
    position: fixed; bottom: 100px; left: 50%;
                transform: translateX(-50%) translateY(20px);
                background: var(--ink); color: var(--white);
                padding: 11px 22px; border-radius: 22px;
                font-size: 14px; font-weight: 500; opacity: 0;
                transition: all 0.3s; z-index: 9999;
                white-space: nowrap; pointer-events: none;
                box-shadow: 0 6px 20px rgba(20,20,20,0.25);
}

.ios-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

.hidden {
    display: none !important;
}

.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.relative {
    position: relative;
}

.match-badge {
    display: none;
                font-size: 11px; font-weight: 600; color: var(--green);
                margin-top: 7px;
}

.match-badge.show {
    display: block;
}

p {
    font-size: 14px;
}

.home-summary-grid {
    display: flex; flex-direction: column; gap: 12px;
                width: calc(100% - 28px); margin: 14px auto 0;
}

.home-summary-card {
    background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 16px;
                padding: 16px;
                display: flex; align-items: center; gap: 14px;
                cursor: pointer;
                box-shadow: 0 4px 14px rgba(20,20,20,0.05);
                transition: transform 0.12s ease;
}

.home-summary-card:active {
    transform: scale(0.98);
}

.home-summary-icon {
    width: 46px; height: 46px;
                border-radius: 13px;
                display: flex; align-items: center; justify-content: center;
                font-size: 19px; color: var(--white);
                flex-shrink: 0;
}

.home-summary-card.water .home-summary-icon {
    background: var(--teal);
}

.home-summary-card.land .home-summary-icon {
    background: var(--green);
}

.home-summary-card.yoklama .home-summary-icon {
    background: var(--amber);
}

.home-summary-card.stats .home-summary-icon {
    background: var(--aqua);
}

.home-summary-card.takvim .home-summary-icon {
    background: #534AB7;
}

.home-summary-card.haberler .home-summary-icon {
    background: var(--deep);
}

.nav-cal-btn {
    width: 44px; height: 44px;
                border: none; border-radius: 10px;
                background: var(--mist); color: var(--teal);
                font-size: 16px; cursor: pointer;
                display: flex; align-items: center; justify-content: center;
                transition: background 0.15s;
}

.nav-cal-btn:active {
    background: var(--aqua); color: #fff;
}

.takvim-header {
    display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 16px;
}

.takvim-ay-baslik {
    font-size: 18px; font-weight: 700; color: var(--ink);
}

.takvim-nav-btn {
    width: 44px; height: 44px;
                border: none; border-radius: 10px;
                background: var(--foam); color: var(--teal);
                font-size: 14px; cursor: pointer;
                display: flex; align-items: center; justify-content: center;
}

.takvim-nav-btn:active {
    background: var(--mist);
}

.takvim-gun-basliklar {
    display: grid; grid-template-columns: repeat(7, 1fr);
                margin-bottom: 8px;
}

.takvim-gun-basliklar div {
    text-align: center; font-size: 11px; font-weight: 700;
                color: var(--slate); text-transform: uppercase;
}

.takvim-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
                gap: 2px;
}

.takvim-gun {
    aspect-ratio: 1; position: relative;
                display: flex; flex-direction: column;
                align-items: center; justify-content: center;
                font-size: 14px; font-weight: 600; color: var(--ink);
                border-radius: 10px; cursor: pointer;
                transition: background 0.12s;
}

.takvim-gun:active {
    background: var(--mist);
}

.takvim-gun.bos {
    cursor: default;
}

.takvim-gun.bugun {
    color: var(--teal); font-weight: 800;
}

.takvim-gun.secili {
    background: var(--teal); color: #fff;
}

.takvim-gun.secili .takvim-nokta {
    background: #fff !important;
}

.takvim-gun.aralik-gun {
    background: #EEF2FF;
}

.takvim-noktalar {
    position: absolute; bottom: 5px;
                display: flex; gap: 2px;
}

.takvim-nokta {
    width: 5px; height: 5px; border-radius: 50%;
}

.takvim-nokta.antrenman {
    background: var(--green);
}

.takvim-nokta.yaris {
    background: #534AB7;
}

.takvim-secili-baslik {
    font-size: 16px; font-weight: 700; color: var(--ink);
                margin-bottom: 12px;
}

.etkinlik-karti {
    background: var(--foam);
                border: 1px solid var(--line);
                border-left-width: 4px;
                border-radius: 12px;
                padding: 14px; margin-bottom: 10px;
}

.etkinlik-karti.antrenman {
    border-left-color: var(--green);
}

.etkinlik-karti.yaris {
    border-left-color: #534AB7;
}

.etkinlik-ust {
    display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 8px; gap: 8px;
}

.etkinlik-baslik-row {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}

.etkinlik-tur-rozet {
    font-size: 10px; font-weight: 700; color: #fff;
                padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
                flex-shrink: 0;
}

.etkinlik-tur-rozet.antrenman {
    background: var(--green);
}

.etkinlik-tur-rozet.yaris {
    background: #534AB7;
}

.etkinlik-baslik-txt {
    font-size: 15px; font-weight: 700; color: var(--ink);
}

.etkinlik-saat {
    font-size: 13px; color: var(--slate); font-weight: 600; flex-shrink: 0;
}

.etkinlik-aralik {
    font-size: 12.5px; font-weight: 700; color: #534AB7;
                margin-top: 4px; display: flex; align-items: center; gap: 5px;
}

.etkinlik-detay {
    font-size: 13px; color: #2C474E; line-height: 1.5; white-space: pre-line; margin-top: 6px;
}

.etkinlik-program-box {
    background: var(--surface); border: 1px solid var(--line);
                border-radius: 8px; padding: 10px; margin-top: 8px;
                font-size: 13px; color: #2C474E; white-space: pre-line;
}

.etkinlik-program-baslik {
    font-size: 11px; font-weight: 700; color: #534AB7; text-transform: uppercase; margin-bottom: 4px;
}

.etkinlik-sporcular {
    font-size: 12px; color: var(--slate); margin-top: 8px;
                display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}

.etkinlik-sporcu-chip {
    background: var(--mist); color: var(--teal);
                padding: 3px 9px; border-radius: 20px; font-weight: 600;
}

.tur-secici {
    display: flex; gap: 8px;
}

.tur-btn {
    flex: 1; padding: 12px;
                border: 1.5px solid var(--line); border-radius: 11px;
                background: var(--foam); color: var(--slate);
                font-size: 14px; font-weight: 600; cursor: pointer;
                font-family: inherit; display: flex; align-items: center;
                justify-content: center; gap: 7px; transition: all 0.15s;
}

.tur-btn.selected {
    background: var(--teal); color: #fff; border-color: var(--teal);
}

.tur-btn.selected.tur-antrenman {
    background: var(--green); color: #fff; border-color: var(--green);
}

.tur-btn.selected.tur-yaris {
    background: #534AB7; color: #fff; border-color: #534AB7;
}

/* Buton sayısı değişken olan (ör. Liderlik stil filtresi) filtre satırları:
   dar ekranda butonlar sıkışıp taşan kısım gizlenmek yerine yana kaydırılabilsin. */
.tur-secici-scroll {
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}

.tur-secici-scroll::-webkit-scrollbar { display: none; }

.tur-secici-scroll .tur-btn {
    flex: 0 0 auto; white-space: nowrap;
}

.sporcu-secim-wrap {
    border: 1px solid var(--line); border-radius: 11px;
                padding: 10px; max-height: 200px; overflow-y: auto;
                background: var(--foam);
}

.sporcu-secim-tumu {
    display: flex; align-items: center; gap: 8px;
                font-size: 14px; font-weight: 700; color: var(--ink);
                padding-bottom: 8px; margin-bottom: 6px;
                border-bottom: 1px solid var(--line); cursor: pointer;
}

.sporcu-secim-satir {
    display: flex; align-items: center; gap: 8px;
                font-size: 14px; color: var(--ink);
                padding: 7px 0; cursor: pointer;
}

.sporcu-secim-satir input, .sporcu-secim-tumu input {
    width: 17px; height: 17px; accent-color: var(--teal);
}

.etkinlik-sil-btn {
    background: none; border: none; color: var(--red);
                font-size: 13px; cursor: pointer; padding: 4px 8px;
                font-family: inherit; font-weight: 600;
}

.home-summary-text {
    flex: 1; min-width: 0;
}

.home-summary-title {
    font-size: 15px; font-weight: 700; color: var(--ink);
                letter-spacing: -0.2px;
}

.home-summary-sub {
    font-size: 12.5px; color: var(--slate);
                margin-top: 3px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.home-summary-chevron {
    color: #C4D6D6; font-size: 14px; flex-shrink: 0;
}

.form-select {
    width: 100%;
                background: var(--foam);
                border: 1.5px solid var(--line);
                border-radius: 11px;
                padding: 12px 13px;
                font-size: 15px; color: var(--ink);
                outline: none; font-family: inherit;
                appearance: none; -webkit-appearance: none;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C757D' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 14px center;
                padding-right: 36px;
}

.form-select:focus {
    border-color: var(--aqua); background-color: var(--surface);
}

.yas-chip-row {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.yas-chip {
    display: flex; align-items: center; gap: 7px;
                background: var(--mist);
                border-radius: 20px;
                padding: 7px 12px;
                font-size: 13px; font-weight: 600; color: var(--teal);
}

.yas-chip button {
    background: none; border: none; cursor: pointer;
                color: var(--teal); font-size: 13px; padding: 0;
                display: flex; align-items: center; opacity: 0.7;
}

.baraj-item {
    display: flex; align-items: center; gap: 12px;
                background: var(--foam);
                border: 1px solid var(--line);
                border-radius: 12px; padding: 12px 14px;
                margin-bottom: 9px;
}

.baraj-badge {
    min-width: 56px; text-align: center;
                font-size: 12px; font-weight: 700;
                padding: 5px 8px; border-radius: 8px;
                color: var(--white); flex-shrink: 0;
}

.baraj-badge.tf {
    background: #534AB7;
}

.baraj-badge.mt {
    background: var(--teal);
}

.baraj-badge.sem {
    background: #D85A30;
}

.baraj-badge.bk {
    background: var(--amber);
}

.baraj-badge.etap {
    background: #D6336C;
}

.baraj-badge.sampiyona {
    background: #0E9F6E;
}

.baraj-badge.genel {
    background: var(--slate-fill);
}

.baraj-havuz-baslik {
    font-size: 12px; font-weight: 700; color: var(--teal);
    text-transform: uppercase; letter-spacing: 0.3px;
    margin: 14px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line);
}

.baraj-th-havuz {
    font-size: 9px; font-weight: 400; color: var(--slate);
}

.baraj-item-info {
    flex: 1; min-width: 0;
}

.baraj-item-title {
    font-size: 14px; font-weight: 600; color: var(--ink);
}

.baraj-item-sub {
    font-size: 12px; color: var(--slate); margin-top: 2px;
}

.baraj-item-sure {
    font-size: 15px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.sporcu-manage-main {
    display: flex; align-items: center; gap: 12px;
                flex: 1; min-width: 0; cursor: pointer;
}

.modal-overlay {
    position: fixed; inset: 0;
                background: rgba(20,20,20,0.45);
                z-index: 3000;
                display: flex; align-items: flex-end; justify-content: center;
}

.modal-sheet {
    background: var(--foam);
                width: 100%; max-width: 640px;
                max-height: 88vh;
                border-radius: 22px 22px 0 0;
                display: flex; flex-direction: column;
                animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
    from { transform: translateY(100%); } to { transform: translateY(0); }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
                padding: 18px 20px 14px;
                border-bottom: 1px solid var(--line);
                flex-shrink: 0;
}

.modal-title {
    font-size: 18px; font-weight: 700; color: var(--ink);
}

.modal-close {
    width: 32px; height: 32px;
                border: none; border-radius: 50%;
                background: var(--mist); color: var(--slate);
                font-size: 15px; cursor: pointer;
                display: flex; align-items: center; justify-content: center;
}

.modal-body {
    padding: 18px 20px 28px; overflow-y: auto;
}

.derece-row {
    display: flex; align-items: center; gap: 12px;
                padding: 12px; background: var(--surface);
                border: 1px solid var(--line); border-radius: 12px;
                margin-bottom: 8px;
}

.derece-row-info {
    flex: 1;
}

.derece-row-title {
    font-size: 14px; font-weight: 600; color: var(--ink);
}

.derece-row-sure {
    font-size: 16px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.derece-row-sure.pb { color: var(--green); }

.derece-row-tarih {
    font-size: 13px; font-weight: 600; color: var(--ink);
}

.derece-row-not {
    font-size: 12px; color: var(--slate); margin-top: 2px; font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.derece-row-aciklama {
    font-size: 12px; color: var(--ink); margin-top: 3px; font-style: italic;
    line-height: 1.4;
}

.derece-grup { margin-bottom: 18px; }

.derece-grup-baslik {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2px 8px; font-size: 14px; font-weight: 700; color: var(--ink);
}

.derece-pb-rozet {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--green-bg); color: var(--green);
    font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}

.derece-havuz-etiket {
    display: inline-block; font-size: 10.5px; font-weight: 700;
    color: var(--teal); background: var(--mist);
    padding: 1px 7px; border-radius: 100px; vertical-align: middle;
}

.derece-lap-grid {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
    max-height: 220px; overflow-y: auto; padding: 2px;
}

.derece-lap-box {
    width: 58px; text-align: center;
}

.derece-lap-box label {
    display: block; font-size: 10px; font-weight: 700; color: var(--slate);
    margin-bottom: 3px;
}

.derece-lap-box input {
    width: 100%; padding: 8px 4px; text-align: center;
    font-size: 12.5px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--foam); color: var(--ink); font-family: inherit;
    box-sizing: border-box;
}

.derece-lap-box input:focus { border-color: var(--aqua); background: var(--surface); outline: none; }

/* ===== BARAJ YAKINLIK GÖSTERGESİ ===== */
.baraj-hedef-kutu {
    background: linear-gradient(135deg, var(--teal) 0%, var(--deep) 100%);
    border-radius: 16px; padding: 16px 18px; color: var(--white);
    margin: 10px 0 14px; display: flex; align-items: center; gap: 14px;
}

.baraj-hedef-ikon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.baraj-hedef-metin { flex: 1; min-width: 0; }
.baraj-hedef-etiket { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.4px; }
.baraj-hedef-baslik { font-size: 15px; font-weight: 700; margin-top: 2px; }
.baraj-hedef-fark { font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 2px; }

.baraj-hedef-kutu.tamamlandi {
    background: linear-gradient(135deg, var(--green) 0%, #1F7A64 100%);
}

.profile-avatar-big {
    width: 88px; height: 88px;
                background: var(--teal);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                font-size: 34px; font-weight: 700; color: var(--white);
                margin: 0; overflow: hidden;
                background-size: cover; background-position: center;
}

.profile-avatar-big img {
    width: 100%; height: 100%; object-fit: cover;
}

.avatar-edit-wrap {
    position: relative; width: 88px; height: 88px;
                margin: 0 auto 16px; cursor: pointer;
}

.avatar-cam {
    position: absolute; bottom: 0; right: 0;
                width: 30px; height: 30px;
                background: var(--surface);
                border: 2px solid var(--surface);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                color: var(--teal); font-size: 13px;
                box-shadow: 0 2px 6px rgba(20,20,20,0.2);
}

.profile-name {
    text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink);
}

.profile-email {
    text-align: center; font-size: 14px; color: var(--slate); margin-top: 4px;
}

.nav-user {
    display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--slate);
}

.nav-avatar {
    width: 32px; height: 32px;
                background: var(--teal);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                font-size: 12px; font-weight: 700; color: var(--white);
                overflow: hidden;
                background-size: cover; background-position: center;
}

.nav-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.tag-announcement {
    color: var(--amber);
}

.card-date {
    font-size: 12px; color: var(--slate); font-weight: 500;
}

.card-content {
    font-size: 15px; line-height: 1.65;
                color: #2C474E; white-space: pre-line;
}

.media-display {
    margin-top: 14px; border-radius: 14px; overflow: hidden;
}

.media-display img {
    width: 100%; display: block; border-radius: 14px;
}

.duyuru-son-ayrac {
    border-top: 1px solid var(--line); margin: 18px 0 14px;
}

.duyuru-son-baslik {
    font-size: 12px; font-weight: 700; color: var(--slate);
    text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px;
}

.pdf-link-box {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--foam); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px;
}

.pdf-link-box i {
    color: #D6373A; font-size: 20px;
}

.exercise-list {
    display: flex; flex-direction: column; gap: 12px; margin-top: 14px;
}

.exercise-card {
    background: var(--foam);
                border-radius: 16px;
                border: 1px solid var(--line);
                display: flex; align-items: center;
                padding: 12px; gap: 14px;
}

.exercise-thumb {
    width: 70px; height: 70px;
                border-radius: 13px; overflow: hidden;
                background: var(--mist);
                flex-shrink: 0;
                display: flex; align-items: center; justify-content: center;
}

.exercise-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

.exercise-thumb .no-img {
    font-size: 10px; color: var(--slate); text-align: center; padding: 4px;
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-size: 16px; font-weight: 700;
                color: var(--ink); letter-spacing: -0.2px;
                margin-bottom: 7px;
}

.exercise-meta {
    display: flex; gap: 8px; flex-wrap: wrap;
}

.meta-pill {
    background: var(--surface);
                border: 1px solid var(--line);
                border-radius: 20px;
                padding: 4px 11px;
                font-size: 12px; font-weight: 600;
                color: var(--slate);
}

.meta-pill.green {
    background: var(--green-bg); color: var(--green); border-color: transparent;
}

.meta-pill.blue {
    background: var(--mist); color: var(--teal); border-color: transparent;
}

.empty-state {
    text-align: center; padding: 40px 20px; color: var(--slate);
}

.empty-state i {
    font-size: 38px; margin-bottom: 12px; display: block; color: var(--aqua); opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

/* ===== LİDERLİK SIRALAMASI ===== */
.liderlik-tablo-scroll {
    overflow-x: auto; margin-top: 10px; max-width: 100%;
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.liderlik-tablo {
    border-collapse: separate; border-spacing: 0; width: 100%;
}

.liderlik-tablo thead th {
    position: sticky; top: 0; z-index: 1;
    background: var(--surface); color: var(--slate);
    font-size: 11px; font-weight: 700; text-align: left;
    padding: 6px 10px; white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

/* # ve Sporcu sütunları yatay kaydırmada da SABİT kalır (position:sticky; left) —
   böylece mesafe sütunları arasında kaydırırken sporcunun kim olduğu hep görünür
   kalır. thead'deki karşılıkları hem top hem left'e sabitlenir (üst köşeye "pinlenir"),
   bu yüzden z-index diğer sticky-top başlıklardan daha yüksek olmalı. */
.liderlik-sira-th, .liderlik-sira-td {
    text-align: center !important; width: 38px;
    position: sticky; left: 0; z-index: 2;
    background: var(--surface);
}

.liderlik-tablo thead .liderlik-sira-th {
    z-index: 3;
}

.liderlik-isim-td, .liderlik-isim-th {
    position: sticky; left: 38px; z-index: 2;
    background: var(--surface);
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.2);
}

.liderlik-tablo thead .liderlik-isim-th {
    z-index: 3;
}

tr.ben .liderlik-sira-td, tr.ben .liderlik-isim-td {
    background: var(--mist);
}

.liderlik-mesafe-th {
    text-align: right !important; cursor: pointer; user-select: none;
}

.liderlik-mesafe-th:hover { color: var(--teal); }

.liderlik-mesafe-th.active { color: var(--teal); }

.liderlik-tablo tbody td {
    padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px;
}

.liderlik-tablo tbody tr:last-child td {
    border-bottom: none;
}

tr.ben td {
    background: var(--mist);
}

.liderlik-sira {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: var(--foam); color: var(--slate);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700;
}

.liderlik-sira.top0 { background: #FFD54A; color: #7A5C00; }
.liderlik-sira.top1 { background: #D9D9DE; color: #55555A; }
.liderlik-sira.top2 { background: #E8B88A; color: #7A4416; }

.liderlik-isim-td {
    font-weight: 600; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.liderlik-ben-etiket {
    color: var(--teal); font-weight: 700; font-size: 12.5px;
}

.liderlik-yas {
    color: var(--slate); font-weight: 500; font-size: 12px;
}

.liderlik-sure-td {
    text-align: right; font-weight: 700; color: var(--ink);
    font-variant-numeric: tabular-nums; font-family: var(--font-display); white-space: nowrap;
}

.liderlik-sure-td.active {
    color: var(--teal);
}

.liderlik-bos {
    color: var(--slate); font-weight: 400;
}

.baraj-grup-header {
    display: flex; align-items: center; justify-content: space-between;
                margin-bottom: 14px; flex-wrap: wrap; gap: 6px;
}

.baraj-grup-baslik {
    font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px;
}

.baraj-grup-derece {
    font-size: 13px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.baraj-grup-derece.yok {
    color: var(--slate); font-weight: 500;
}

.baraj-kategori-baslik {
    font-size: 11px; font-weight: 700;
                text-transform: uppercase; letter-spacing: 0.5px;
                color: var(--amber); margin: 12px 0 8px;
}

.baraj-kategori-baslik.etap {
    color: #D6336C;
}

.baraj-satir {
    display: flex; align-items: center; gap: 10px;
                padding: 11px 0;
                border-bottom: 1px solid var(--line);
}

.baraj-satir:last-child {
    border-bottom: none;
}

.baraj-satir-sure {
    font-size: 15px; font-weight: 700; color: var(--ink);
                font-variant-numeric: tabular-nums; font-family: var(--font-display); flex: 1;
}

.baraj-durum {
    font-size: 12.5px; font-weight: 700;
                padding: 5px 10px; border-radius: 20px;
                white-space: nowrap; flex-shrink: 0;
}

.baraj-durum.gecti {
    background: var(--green-bg); color: var(--green);
}

.baraj-durum.kaldi {
    background: var(--amber-bg); color: var(--amber);
}

.baraj-durum.bekliyor {
    background: var(--mist); color: var(--slate);
}

/* ===== TÜM SPORCULAR BARAJ DURUMU TABLOSU ===== */
.baraj-tablo-scroll {
    overflow-x: auto; margin: 0 -4px 12px; -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.baraj-tablo {
    border-collapse: separate; border-spacing: 0 4px; width: 100%;
}

.baraj-tablo thead th {
    font-size: 10px; font-weight: 700; color: var(--slate);
                text-align: center; padding: 0 4px 6px; white-space: nowrap;
                line-height: 1.3;
}

.baraj-sporcu-ad-th {
    position: sticky; left: 0; background: var(--surface); z-index: 2;
                text-align: left !important; padding-right: 10px !important;
}

.baraj-sporcu-ad {
    position: sticky; left: 0; background: var(--surface); z-index: 1;
                text-align: left; padding: 0 10px 0 0; font-size: 12.5px;
                font-weight: 600; color: var(--ink); white-space: nowrap;
                box-shadow: 3px 0 4px -2px rgba(0,0,0,0.06);
}

/* Bir kategori sayfasında yaşa göre "hedef kitle" olan sporcuların (bkz. baraj-kategori.html
   vurguFiltresi) satırını listedeki diğer sporculardan ayırt etmek için — sporcu tablodan
   çıkarılmaz, sadece öne çıkarılır. */
.baraj-satir-vurgulu .baraj-sporcu-ad {
    background: var(--mist); color: var(--teal); font-weight: 800;
}

.baraj-hucre {
    width: 52px; height: 30px; min-width: 52px;
                border-radius: 7px; border: 1px solid var(--line);
                background: var(--surface);
                text-align: center; font-size: 10px; font-weight: 700;
                white-space: nowrap;
}

.baraj-esik-tablo .baraj-sporcu-ad-th {
    min-width: 6px;
}

.baraj-esik-baslik {
    position: sticky; left: 0; z-index: 1;
                text-align: left; padding: 6px 10px; font-size: 10.5px;
                font-weight: 700; color: var(--white); white-space: nowrap;
                border-radius: 7px; box-shadow: 3px 0 4px -2px rgba(0,0,0,0.15);
}

.baraj-esik-hucre {
    width: 52px; height: 28px; min-width: 52px;
                border-radius: 7px; border: 1px solid var(--line);
                background: var(--foam);
                text-align: center; font-size: 10px; font-weight: 600; color: var(--ink);
                white-space: nowrap;
}

.baraj-legend {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px;
}

.baraj-legend-item {
    display: flex; align-items: center; gap: 5px;
                font-size: 11px; color: var(--slate);
}

.baraj-legend-item i {
    display: inline-block; width: 12px; height: 12px;
                border-radius: 3px; flex-shrink: 0;
}

.baraj-legend-item i.bos {
    background: var(--surface); border: 1px solid var(--line);
}

/* ===== SPORCU KARNESİ / GÜNCEL PB TABLOLARI ===== */
.karne-tablo-wrap {
    overflow: auto; -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    max-height: 65vh;
}

.karne-tablo {
    width: 100%; border-collapse: collapse;
}

.karne-tablo th {
    font-size: 11px; font-weight: 700; color: var(--slate);
                text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line);
                white-space: nowrap;
}

.karne-tablo td {
    font-size: 12.5px; color: var(--ink); padding: 8px 10px;
                border-bottom: 1px solid var(--line); white-space: nowrap;
}

/* Karne matrisi (Tarih/Havuz/Yarış/Yer + branş sütunları): satır sayısı ve branş
   sayısı arttıkça hem dikeyde hem yatayda kayar - başlık satırı (branşlar) ve
   Tarih/Havuz sütunları kaydırma sırasında sabit (yapışkan) kalır, referans
   noktası kaybolmasın diye. */
.karne-tablo-matris thead th {
    position: sticky; top: 0; z-index: 3;
    background: var(--surface);
}

.karne-matris-sabit {
    position: sticky; z-index: 2; background: var(--surface);
}

.karne-tablo-matris thead th.karne-matris-sabit {
    z-index: 4;
}

.karne-matris-sabit-tarih {
    left: 0; width: 92px; min-width: 92px;
}

.karne-matris-sabit-havuz {
    left: 92px; width: 64px; min-width: 64px;
    box-shadow: 3px 0 4px -2px rgba(0,0,0,0.06);
}

.karne-tablo tbody tr:last-child td {
    border-bottom: none;
}

.karne-tablo-brans {
    font-weight: 700;
}

.karne-tablo-pb {
    font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.karne-matris-brans {
    text-align: center !important; line-height: 1.4;
}

.karne-matris-hucre {
    text-align: center; font-variant-numeric: tabular-nums;
}

.karne-tablo td.karne-matris-hucre-pb {
    font-weight: 700; color: var(--teal); font-family: var(--font-display);
                background: var(--mist);
                position: relative;
}

.karne-matris-hucre-pb::after {
    content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
                font-size: 8px; color: var(--teal); vertical-align: super;
                margin-left: 2px;
}

.karne-matris-aksiyon {
    white-space: nowrap; text-align: right;
}

.karne-satir-btn {
    width: 30px; height: 30px; border: none; border-radius: 8px;
                background: var(--foam); color: var(--slate); font-size: 12px;
                cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
                margin-left: 4px;
}

.karne-satir-btn.karne-satir-sil-btn {
    background: var(--red-bg); color: var(--red);
}

.karne-satir-brans-grid {
    display: flex; flex-direction: column; gap: 12px;
}

.karne-satir-stil-baslik {
    font-size: 12px; font-weight: 700; color: var(--slate);
                text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px;
}

.karne-satir-stil-satiri {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.karne-satir-brans-alan {
    display: flex; flex-direction: column; gap: 4px; width: 84px;
}

.karne-satir-brans-alan label {
    font-size: 11px; color: var(--slate);
}

.karne-satir-brans-input {
    width: 100%; border: 1px solid var(--line); border-radius: 9px;
                padding: 8px; font-size: 12.5px; text-align: center;
                font-variant-numeric: tabular-nums;
}

.stat-tur-heading {
    font-size: 13px; font-weight: 700; color: var(--slate);
                text-transform: uppercase; letter-spacing: 0.3px;
                margin: 14px 0 8px;
}

.stat-tur-heading:first-of-type {
    margin-top: 0;
}

.stats-summary {
    display: grid; grid-template-columns: 1fr 1fr;
                gap: 10px; margin-bottom: 18px;
}

.stats-summary-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.stat-box {
    background: var(--foam);
                border: 1px solid var(--line);
                border-radius: 14px;
                padding: 16px 14px; text-align: center;
}

.stat-value {
    font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink);
                font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.stat-label {
    font-size: 11px; font-weight: 600;
                color: var(--slate); text-transform: uppercase;
                letter-spacing: 0.3px; margin-top: 3px;
}

.stat-value.green {
    color: var(--green);
}

.stat-value.red {
    color: var(--red);
}

.stat-value.orange {
    color: var(--amber);
}

.chart-area {
    width: 100%; height: 170px; position: relative; margin-bottom: 8px;
}

.chart-area canvas {
    width: 100% !important;
}

.attendance-history {
    display: flex; flex-direction: column; gap: 0;
}

.attendance-row {
    display: flex; align-items: center;
                padding: 14px 0;
                border-bottom: 1px solid var(--line);
                gap: 12px;
}

.attendance-row:last-child {
    border-bottom: none;
}

.att-date {
    font-size: 14px; font-weight: 600; color: var(--ink); flex: 1;
}

.att-sub {
    font-size: 12px; color: var(--slate); font-weight: 400; margin-top: 3px;
}

.att-badge {
    font-size: 11px; font-weight: 700;
                padding: 5px 11px; border-radius: 20px;
                text-transform: uppercase; letter-spacing: 0.3px;
}

.badge-geldi {
    background: var(--green-bg); color: var(--green);
}

.badge-gelmedi {
    background: var(--red-bg); color: var(--red);
}

.badge-yarista {
    background: var(--amber-bg); color: var(--amber);
}

.list-row {
    display: flex; align-items: center;
                padding: 15px 0;
                border-bottom: 1px solid var(--line);
                gap: 13px; cursor: pointer;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row-icon {
    width: 34px; height: 34px;
                border-radius: 10px;
                display: flex; align-items: center; justify-content: center;
                font-size: 14px; color: var(--white);
                flex-shrink: 0;
}

.list-row-text {
    flex: 1;
}

.list-row-title {
    font-size: 15px; font-weight: 600; color: var(--ink);
}

.list-row-sub {
    font-size: 12px; color: var(--slate); margin-top: 2px;
}

.list-row i.chevron {
    color: #C4D6D6; font-size: 13px;
}

.pass-form {
    display: none; margin-top: 18px;
}

.pass-form.show {
    display: block;
}

.form-input {
    width: 100%;
                background: var(--foam);
                border: 1.5px solid var(--line);
                border-radius: 11px;
                padding: 13px 13px;
                font-size: 15px; color: var(--ink);
                outline: none; font-family: inherit;
                margin-bottom: 11px;
}

.form-input:focus {
    border-color: var(--aqua); background: var(--surface);
}

/* .btn-primary ve .btn-danger, asagidaki ortak .btn taban sinifiyla birlikte kullanilir
   (orn: class="btn btn-primary"). Boylece sporcu.html ve antrenor.html ayni buton
   sistemini paylasir. */
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:active { background: var(--deep); }

.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:active { background: #FEE2E2; }


/* ===== KİMLİK BAŞLIĞI (nav - avatar + isim + rol) ===== */
.nav-identity {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}

.nav-avatar-lg {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--teal); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; overflow: hidden;
}
.nav-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.nav-identity-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-name-lg {
    font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px;
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.nav-role-lg { font-size: 11.5px; font-weight: 500; color: var(--slate); line-height: 1.25; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-icon-btn {
    width: 44px; height: 44px; border: none; border-radius: 10px;
    background: var(--mist); color: var(--teal); font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; position: relative;
}
.nav-icon-btn:active { background: var(--aqua); color: #fff; }
.nav-icon-btn.danger { background: var(--red-bg); color: var(--red); }
.nav-icon-btn.danger:active { background: #FEE2E2; }

/* ===== ANA SAYFA - KATEGORİLİ MENÜ ===== */
.home-section-header {
    display: flex; align-items: center; gap: 8px;
    margin: 24px 4px 12px;
}
.home-section-header i { color: var(--teal); font-size: 14px; }
.home-section-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }

.home-hero-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding: 2px 4px 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -4px; touch-action: pan-x;
}
.home-hero-scroll::-webkit-scrollbar { display: none; }

.home-hero-card {
    flex: 0 0 82%; max-width: 320px; scroll-snap-align: start;
    border-radius: 20px; padding: 20px; color: var(--white);
    position: relative; overflow: hidden; cursor: pointer;
    background: linear-gradient(135deg, var(--teal) 0%, var(--deep) 100%);
}
.home-hero-card.alt { background: linear-gradient(135deg, #6B5FE0 0%, #3B3080 100%); }

.home-hero-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
}
.home-hero-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.home-hero-desc { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 16px; min-height: 36px; }
.home-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.18); border: none; border-radius: 100px;
    color: var(--white); font-size: 13px; font-weight: 600;
    padding: 8px 15px; font-family: inherit; cursor: pointer; pointer-events: none;
}

.home-tool-grid, .home-menu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.home-tool-card {
    border-radius: 16px; padding: 18px 14px; color: var(--white); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    background: var(--teal);
}
.home-tool-card.c2 { background: var(--amber); }
.home-tool-card.c3 { background: var(--green); }
.home-tool-card.c4 { background: #6B5FE0; }

.home-tool-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.home-tool-label { font-size: 13.5px; font-weight: 700; }

.home-menu-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 18px 14px; cursor: pointer; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.home-menu-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    background: var(--mist); color: var(--teal);
}
.home-menu-icon.c2 { background: var(--green-bg); color: var(--green); }
.home-menu-icon.c3 { background: var(--amber-bg); color: var(--amber); }
.home-menu-icon.c4 { background: #EEF2FF; color: #6366F1; }

.home-menu-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.home-menu-sub { font-size: 11px; color: var(--slate); margin-top: -6px; }

/* ===== DIŞA AKTARMA BUTONLARI ===== */
.export-btn-row {
    display: flex; gap: 10px; margin: 10px 0 16px; flex-wrap: wrap;
}

.btn-export {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--foam); border: 1.5px solid var(--line);
    color: var(--ink); font-size: 13px; font-weight: 600;
    padding: 9px 14px; border-radius: 10px; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.btn-export:active { background: var(--mist); border-color: var(--teal); }
.btn-export i { color: var(--green); }
.btn-export i.fa-table { color: var(--teal); }

/* ===== HABER KLASÖRLERİ ===== */
.klasor-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: 10px; cursor: pointer; transition: all 0.15s;
}
.klasor-card:active { background: var(--mist); }

.klasor-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--mist); color: var(--teal);
    border-radius: 12px; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

.klasor-info { flex: 1; min-width: 0; }
.klasor-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.klasor-meta { font-size: 12px; color: var(--slate); margin-top: 2px; }

.klasor-chevron { color: #C7C7CC; font-size: 13px; flex-shrink: 0; }

.btn-delete-disabled {
    opacity: 0.35; cursor: not-allowed;
}

.klasor-new-row {
    display: flex; gap: 8px; margin-bottom: 14px;
}
.klasor-new-row input {
    flex: 1;
}

/* ===== EVRENSEL DOKUNMA/TIKLAMA GERİ BİLDİRİMİ ===== */
/* onclick'i olan HER öğe (buton, kart, sekme, filtre çipi vb.) basılı
   tutulduğunda hafifçe kararır ve küçülür. Tek bir kuralla tüm uygulamadaki
   farklı renkteki butonlar/kartlar (turuncu, teal, kırmızı, beyaz kart vb.)
   aynı mekanizmayla tepki verir; yeni eklenen onclick'li öğeler de otomatik kapsanır. */
button:active,
[onclick]:active {
    filter: brightness(0.92);
    transform: scale(0.97);
}
button, [onclick] {
    transition: filter 0.08s ease, transform 0.08s ease;
}

/* ===== SESLİ NOT KAYDI (Derece girme ekranı) ===== */
.ses-kayit-row {
    display: flex; align-items: center; gap: 12px;
}

.btn-ses-kayit {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--foam); border: 1.5px solid var(--line);
    color: var(--ink); font-size: 13.5px; font-weight: 600;
    padding: 10px 16px; border-radius: 12px; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.btn-ses-kayit i { color: var(--teal); }
.btn-ses-kayit:active { background: var(--mist); }

.btn-ses-kayit.recording {
    background: var(--red-bg); border-color: var(--red); color: var(--red);
}
.btn-ses-kayit.recording i {
    color: var(--red); animation: sesKayitPulse 1.1s infinite;
}
@keyframes sesKayitPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ses-kayit-sure {
    font-size: 13px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.ses-onizleme {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.ses-onizleme audio {
    flex: 1; height: 36px;
}

.ses-not-player {
    width: 100%; height: 36px; margin-top: 8px;
}

/* ===========================================================================
   OVERSIZED METRIK TIPOGRAFISI
   Havuz kenarinda hizli okunabilirlik icin: buyuk, kalin, yuksek kontrastli
   sayisal degerler (derece, yuzde, siralama vb.). .metric-card icine konur;
   durum rengi icin .success/.warning/.critical modifier'lari kullanilir.
   =========================================================================== */
.metric-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 18px 16px; text-align: center;
}

.metric-value {
    font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.05;
    color: var(--ink); font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.metric-value.metric-lg { font-size: 56px; }
.metric-value.metric-sm { font-size: 32px; }

.metric-value .metric-unit {
    font-size: 0.4em; font-weight: 700; margin-left: 3px; color: var(--slate);
}

.metric-label {
    font-size: 12px; font-weight: 700; color: var(--slate);
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px;
}

.metric-value.success { color: var(--green); }
.metric-value.warning { color: var(--amber); }
.metric-value.critical { color: var(--red); }

.metric-delta {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; margin-top: 8px;
    font-variant-numeric: tabular-nums; font-family: var(--font-display);
}
.metric-delta.success { color: var(--green); }
.metric-delta.warning { color: var(--amber); }
.metric-delta.critical { color: var(--red); }

.metric-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

/* ===========================================================================
   DASHBOARD SHELL - mobilde alt sekme çubuğu (.ios-tab-bar), genişçe
   ekranlarda (>=900px) sol sabit sidebar (.app-sidebar). Aynı sayfa
   linkleri iki gösterimde de bulunur; navigate() ikisini birlikte günceller
   (bkz. her sayfanın data-tab tabanlı aktif-sekme mantığı).
   =========================================================================== */
.app-sidebar {
    display: none;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 12px 22px; font-size: 17px; font-weight: 800;
    color: var(--ink); letter-spacing: -0.3px;
}
.sidebar-brand i {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: var(--teal); color: #04222B;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
}

.sidebar-item {
    display: flex; align-items: center; gap: 14px;
    width: 100%; min-height: 46px;
    padding: 12px 14px; margin-bottom: 2px;
    border-radius: 12px; border: none; background: none;
    color: var(--slate); font-family: inherit;
    font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.sidebar-item i {
    font-size: 17px; width: 20px; text-align: center; flex-shrink: 0;
}
.sidebar-item:hover {
    background: var(--mist); color: var(--ink);
}
.sidebar-item.active {
    background: var(--mist); color: var(--teal);
}

@media (min-width: 900px) {
    .app-sidebar {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; bottom: 0; width: 248px;
        background: var(--surface); border-right: 1px solid var(--line);
        padding: 20px 12px; overflow-y: auto; z-index: 500;
    }
    .ios-tab-bar { display: none; }
    nav { margin-left: 248px; width: calc(100% - 248px); }
    .container {
        margin-left: 248px; width: calc(100% - 248px); max-width: none;
        padding: 0 24px 40px;
    }
    .ios-card { max-width: 640px; }
    .home-summary-grid { max-width: 640px; }
}

/* ===== ERİŞİLEBİLİRLİK: klavye odağı + hareket azaltma tercihi ===== */
a:focus-visible, button:focus-visible, [onclick]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
