/* ============================================================
   Hakan Güner Clinic — Admin Panel Stil Dosyası
   ============================================================ */
:root{
  --a-black:#0b0b0c; --a-gold:#d4af37; --a-gold-deep:#a9781f; --a-gold-light:#f7e08c;
  --a-bg:#f4f2ec; --a-card:#ffffff; --a-border:#e7e2d3; --a-text:#242119; --a-muted:#8a8578;
  --a-danger:#c0453a; --a-success:#2f8f57; --a-info:#3a6fb0; --a-warning:#c98a1c;
  --a-radius:14px;
}
*,*::before,*::after{ box-sizing:border-box; }
body.admin{
  margin:0; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; background:var(--a-bg); color:var(--a-text);
  display:flex; min-height:100vh;
}
h1,h2,h3,h4{ font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-weight:700; margin:0; }
a{ color:inherit; text-decoration:none; }
.a-sidebar{
  width:250px; background:var(--a-black); color:#e7e2d3; flex-shrink:0; position:sticky; top:0; height:100vh; overflow-y:auto;
  display:flex; flex-direction:column;
}
.a-sidebar-brand{ padding:24px 20px; border-bottom:1px solid rgba(212,175,55,.15); display:flex; align-items:center; gap:10px; }
.a-sidebar-brand img{ height:34px; }
.a-sidebar-brand span{ font-size:12px; color:var(--a-gold); letter-spacing:1px; }
.a-nav{ padding:16px 12px; flex:1; }
.a-nav-group-title{ font-size:11px; text-transform:uppercase; letter-spacing:1.5px; color:#6f6a5a; padding:16px 12px 8px; }
.a-nav a{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px; font-size:14px; margin-bottom:2px; color:#d8d3c2;
  transition:background .15s, color .15s;
}
.a-nav a:hover{ background:rgba(212,175,55,.08); color:#fff; }
.a-nav a.active{ background:linear-gradient(135deg,var(--a-gold-light),var(--a-gold)); color:#0b0b0c; font-weight:600; }
.a-nav .badge-count{ margin-left:auto; background:var(--a-danger); color:#fff; font-size:11px; padding:2px 8px; border-radius:20px; }
.a-sidebar-foot{ padding:18px; border-top:1px solid rgba(212,175,55,.15); font-size:13px; }
.a-sidebar-foot .a-user{ color:#fff; font-weight:600; margin-bottom:8px; }
.a-sidebar-foot a{ color:var(--a-gold); }

.a-main{ flex:1; min-width:0; }
.a-topbar{
  background:#fff; border-bottom:1px solid var(--a-border); padding:18px 30px;
  display:flex; align-items:center; justify-content:flex-start; gap:16px; position:sticky; top:0; z-index:20;
}
.a-topbar h1{ font-size:20px; margin:0; flex:1; }
.a-topbar .a-view-site{ font-size:13px; color:var(--a-muted); }
.a-content{ padding:28px 30px 60px; }

.a-grid{ display:grid; gap:20px; }
.a-grid-4{ grid-template-columns:repeat(4,1fr); }
.a-grid-3{ grid-template-columns:repeat(3,1fr); }
.a-grid-2{ grid-template-columns:1fr 1fr; }
@media (max-width:1100px){ .a-grid-4{ grid-template-columns:repeat(2,1fr);} .a-grid-3{grid-template-columns:repeat(2,1fr);} }

.a-card{ background:var(--a-card); border:1px solid var(--a-border); border-radius:var(--a-radius); padding:22px; }
.a-card h3{ margin-top:0; font-size:15px; }
.a-stat{ display:flex; align-items:center; gap:16px; }
.a-stat .icon{ width:52px; height:52px; border-radius:14px; background:rgba(212,175,55,.12); color:var(--a-gold-deep); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.a-stat b{ display:block; font-size:26px; }
.a-stat span{ font-size:12.5px; color:var(--a-muted); text-transform:uppercase; letter-spacing:.5px; }

.a-btn{ display:inline-flex; align-items:center; gap:8px; padding:11px 20px; border-radius:10px; border:1px solid transparent; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; }
.a-btn-gold{ background:linear-gradient(135deg,var(--a-gold-light),var(--a-gold)); color:#0b0b0c; }
.a-btn-gold:hover{ filter:brightness(1.05); }
.a-btn-outline{ border-color:var(--a-border); background:#fff; color:var(--a-text); }
.a-btn-outline:hover{ border-color:var(--a-gold); }
.a-btn-danger{ background:#fbeae8; color:var(--a-danger); }
.a-btn-danger:hover{ background:#f6d8d4; }
.a-btn-sm{ padding:7px 14px; font-size:12.5px; }
.a-btn[disabled]{ opacity:.6; cursor:not-allowed; }
.a-btn-outline.is-active{ border-color:var(--a-success); background:#e5f6ec; color:#1e6b3d; cursor:default; }

table.a-table{ width:100%; border-collapse:collapse; background:#fff; }
table.a-table th, table.a-table td{ padding:13px 16px; border-bottom:1px solid var(--a-border); text-align:left; font-size:13.5px; }
table.a-table th{ background:#faf8f2; font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--a-muted); }
table.a-table tr:hover td{ background:#fbfaf5; }

.a-badge{ display:inline-block; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.a-badge-yeni{ background:#e6f0fb; color:var(--a-info); }
.a-badge-iletisime_gecildi{ background:#fdf2df; color:var(--a-warning); }
.a-badge-tamamlandi{ background:#e5f6ec; color:var(--a-success); }
.a-badge-iptal{ background:#fbeae8; color:var(--a-danger); }
.a-badge-aranacak{ background:#fdf2df; color:var(--a-warning); }
.a-badge-gorusme_planlandi{ background:#e6f0fb; color:var(--a-info); }
.a-badge-teklif_verildi{ background:#f1e9fb; color:#7b4fc9; }
.a-badge-islem_planlandi{ background:#fdf2df; color:var(--a-gold-deep); }
.a-badge-islem_tamamlandi{ background:#e5f6ec; color:var(--a-success); }
.a-badge-kaybedildi{ background:#f0f0f0; color:var(--a-muted); }

/* =========================================================
   SAÇ EKİMİ BÖLGE HARİTASI (Scalp Map)
   ========================================================= */
.scalp-map{ display:flex; gap:28px; flex-wrap:wrap; align-items:flex-start; }
.scalp-map-svg{
  width:340px; max-width:100%; height:auto; flex-shrink:0;
  background:linear-gradient(180deg,#fdfcf8,#f6f2e6); border-radius:20px; border:1px solid var(--a-border);
  padding:14px; box-shadow:0 8px 24px -12px rgba(36,33,25,.18);
}

.scalp-orientation{ font-family:'Manrope',sans-serif; font-size:11px; font-weight:800; fill:var(--a-muted); text-anchor:middle; letter-spacing:1px; }
.scalp-orientation-arrow{ fill:var(--a-gold-deep); }
.scalp-ear{ fill:#f1ece0; stroke:#ddd4bc; stroke-width:1.5; }
.scalp-outline{ fill:#f6f2e6; stroke:#ddd4bc; stroke-width:2; }

.scalp-zone-shape{ stroke:#fdfcf8; stroke-width:3; transition:fill .25s ease, opacity .2s ease, filter .2s ease; }
.scalp-zone.zone-clickable{ cursor:pointer; }
.scalp-zone.zone-clickable:hover .scalp-zone-shape{ filter:brightness(1.08); }
.scalp-zone.zone-clickable:active .scalp-zone-shape{ filter:brightness(.95); }
.scalp-zone.zone-clickable:focus{ outline:none; }
.scalp-zone.zone-clickable:focus .scalp-zone-shape{ stroke:var(--a-gold-deep); stroke-width:4; }

.scalp-zone.zone-unselected .scalp-zone-shape{ fill:#e4dfd0; }
.scalp-zone.zone-recipient .scalp-zone-shape{ fill:var(--a-gold); }
.scalp-zone.zone-donor .scalp-zone-shape{ fill:#233457; }

.scalp-zone-label{
  font-family:'Manrope',sans-serif; font-size:14px; font-weight:700; letter-spacing:.3px;
  fill:#5c5744; text-anchor:middle; pointer-events:none; text-transform:uppercase;
}
.scalp-zone.zone-recipient .scalp-zone-label{ fill:#3a2e05; }
.scalp-zone.zone-donor .scalp-zone-label{ fill:#f7e08c; }

.scalp-legend{ min-width:230px; flex:1; padding-top:6px; }
.scalp-legend-item{ display:flex; align-items:center; gap:10px; font-size:13.5px; margin-bottom:14px; color:#4a4536; }
.scalp-swatch{ width:20px; height:20px; border-radius:6px; flex-shrink:0; border:1.5px solid rgba(0,0,0,.1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.4); }
.swatch-unselected{ background:#e4dfd0; }
.swatch-recipient{ background:var(--a-gold); }
.swatch-donor{ background:#233457; }
.scalp-count{ margin-left:auto; font-size:16px; font-family:'Manrope',sans-serif; }

@media (max-width:640px){
  .scalp-map{ flex-direction:column; align-items:center; }
  .scalp-map-svg{ width:100%; max-width:340px; }
  .scalp-legend{ width:100%; }
}

.a-form-group{ margin-bottom:18px; }
.a-form-group label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
.a-form-group .hint{ font-size:12px; color:var(--a-muted); margin-top:5px; }
.a-form-group input[type=text], .a-form-group input[type=email], .a-form-group input[type=password],
.a-form-group input[type=number], .a-form-group input[type=url], .a-form-group input[type=tel],
.a-form-group input[type=date], .a-form-group input[type=time], .a-form-group input[type=search],
.a-form-group input[type=datetime-local], .a-form-group select, .a-form-group textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--a-border); border-radius:10px; font-family:inherit; font-size:14px; background:#fdfcf9; color:var(--a-text);
}
.a-form-group input[type=checkbox]{ width:auto; accent-color:var(--a-gold-deep); margin-right:6px; }
.a-form-group input:focus, .a-form-group select:focus, .a-form-group textarea:focus{ outline:none; border-color:var(--a-gold); }
.a-form-group input[type=date]::-webkit-calendar-picker-indicator,
.a-form-group input[type=datetime-local]::-webkit-calendar-picker-indicator{
  filter:invert(58%) sepia(45%) saturate(482%) hue-rotate(358deg) brightness(93%) contrast(88%);
  cursor:pointer; padding:2px; border-radius:5px;
}
.a-form-group input[type=date]::-webkit-calendar-picker-indicator:hover,
.a-form-group input[type=datetime-local]::-webkit-calendar-picker-indicator:hover{ background:var(--a-bg); }
.a-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.a-form-row-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px; }
.a-form-row-5{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
@media (max-width:900px){ .a-form-row, .a-form-row-3{ grid-template-columns:1fr; } .a-form-row-5{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .a-form-row-5{ grid-template-columns:1fr; } }

.a-alert{ padding:14px 18px; border-radius:10px; margin-bottom:20px; font-size:14px; }
.a-alert-success{ background:#e5f6ec; color:#1e6b3d; }
.a-alert-error{ background:#fbeae8; color:#a7332a; }
.a-alert-info{ background:#e6f0fb; color:#2a568c; }

.a-tabs{ display:flex; gap:6px; border-bottom:2px solid var(--a-border); margin-bottom:24px; flex-wrap:wrap; }
.a-tabs a{ padding:12px 18px; font-size:13.5px; font-weight:600; color:var(--a-muted); border-bottom:2px solid transparent; margin-bottom:-2px; }
.a-tabs a.active{ color:var(--a-gold-deep); border-color:var(--a-gold); }

.a-media-upload{ border:2px dashed var(--a-border); border-radius:14px; padding:20px; text-align:center; background:#faf9f5; }
.a-media-preview{ max-width:220px; border-radius:10px; margin-bottom:12px; border:1px solid var(--a-border); }
.a-thumb-sm{ width:56px; height:56px; object-fit:cover; border-radius:8px; }

.a-login-wrap{ min-height:100vh; width:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,#0b0b0c,#26221a); }
.a-login-card{ background:#fff; padding:44px; border-radius:20px; width:380px; max-width:90vw; box-shadow:0 30px 70px rgba(0,0,0,.4); }
.a-login-card img{ height:50px; margin-bottom:24px; }
.a-login-card h2{ margin:0 0 6px; font-size:20px; }
.a-login-card p.sub{ color:var(--a-muted); font-size:13.5px; margin-bottom:24px; }

.a-empty{ text-align:center; padding:60px 20px; color:var(--a-muted); }
.a-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; gap:14px; flex-wrap:wrap; }
.a-search{ display:flex; gap:8px; }
.a-filters{ display:flex; gap:8px; flex-wrap:wrap; }
.a-filters a{ padding:8px 16px; border-radius:20px; font-size:12.5px; border:1px solid var(--a-border); background:#fff; }
.a-filters a.active{ background:var(--a-gold); border-color:var(--a-gold); color:#0b0b0c; font-weight:700; }

.a-editor-toolbar{ display:flex; flex-wrap:wrap; gap:4px; padding:8px; background:#faf9f5; border:1.5px solid var(--a-border); border-bottom:none; border-radius:10px 10px 0 0; }
.a-editor-toolbar button{ border:1px solid transparent; background:#fff; border-radius:6px; width:32px; height:32px; cursor:pointer; font-size:13px; }
.a-editor-toolbar button:hover{ border-color:var(--a-gold); }
.a-editor-content{ min-height:420px; border:1.5px solid var(--a-border); border-radius:0 0 10px 10px; padding:18px; font-size:14.5px; line-height:1.7; }
.a-editor-content:focus{ outline:none; }
.a-word-count{ font-size:12px; color:var(--a-muted); margin-top:6px; text-align:right; }

.a-inline-list{ list-style:none; padding:0; margin:0; }
.a-inline-list li{ display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--a-border); gap:10px; }

.a-pagination{ display:flex; gap:6px; margin-top:20px; }
.a-pagination a, .a-pagination span{ width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--a-border); font-size:13px; background:#fff; }
.a-pagination .current{ background:var(--a-gold); border-color:var(--a-gold); font-weight:700; }

/* =========================================================
   RESPONSIVE — mobil/tablet için kayan (off-canvas) menü
   ========================================================= */
.nav-toggle-mobile{ display:none; }
.a-sidebar-backdrop{ display:none; }

@media (max-width:960px){
  body.admin{ display:block; }
  .a-sidebar{
    position:fixed; left:0; top:0; height:100vh; width:270px; z-index:1001;
    transform:translateX(-100%); transition:transform .25s ease;
  }
  .a-sidebar.open{ transform:translateX(0); box-shadow:0 0 50px rgba(0,0,0,.5); }
  .a-main{ width:100%; }
  .a-sidebar-backdrop{
    display:none; position:fixed; inset:0; background:rgba(11,11,12,.5); z-index:1000;
  }
  .a-sidebar-backdrop.open{ display:block; }
  .nav-toggle-mobile{
    display:flex; align-items:center; justify-content:center; width:42px; height:42px;
    border-radius:10px; border:1px solid var(--a-border); background:#fff; cursor:pointer; font-size:19px; flex-shrink:0;
  }
  .a-topbar{ padding:14px 16px; gap:10px; flex-wrap:wrap; }
  .a-topbar h1{ font-size:17px; flex:1 1 auto; }
  .a-topbar #pwaInstallBtn, .a-topbar #pushEnableBtn{ font-size:12px; padding:7px 12px; order:1; flex:1 1 100%; justify-content:center; margin-top:2px; }
  .a-content{ padding:18px 16px 50px; }
}

@media (max-width:640px){
  .a-grid-2, .a-grid-3, .a-grid-4, .a-grid-calendar{ grid-template-columns:1fr; }
  .a-form-row, .a-form-row-3{ grid-template-columns:1fr; }
  .a-toolbar{ flex-direction:column; align-items:stretch; }
  .a-search{ flex-direction:column; }
  table.a-table{ display:block; overflow-x:auto; white-space:nowrap; }
}

/* =========================================================
   TAKVİM MODAL + FullCalendar tema uyumu
   ========================================================= */
.a-grid-calendar{ grid-template-columns:2fr 1fr; }

.a-modal{
  position:fixed; inset:0; background:rgba(11,11,12,.55); display:flex; align-items:center;
  justify-content:center; z-index:2000; padding:20px;
}
.a-modal[hidden]{ display:none; }
.a-modal-box{
  background:#fff; border-radius:16px; padding:28px; width:480px; max-width:100%;
  max-height:90vh; overflow-y:auto; box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.a-modal-box h3{ margin-bottom:18px; }

.fc{ font-family:'Inter',sans-serif; }
.fc .fc-toolbar-title{ font-family:'Manrope',sans-serif; font-size:18px !important; }
.fc .fc-button-primary{ background:var(--a-gold-deep); border-color:var(--a-gold-deep); text-transform:capitalize; box-shadow:none !important; }
.fc .fc-button-primary:hover{ background:var(--a-gold); border-color:var(--a-gold); }
.fc .fc-button-primary:disabled{ opacity:.5; }
.fc .fc-button-primary:not(:disabled).fc-button-active{ background:var(--a-black); border-color:var(--a-black); }
.fc-daygrid-day.fc-day-today, .fc-timegrid-col.fc-day-today{ background:rgba(212,175,55,.08) !important; }
.fc-event{ cursor:pointer; border:none !important; }
.fc a{ color:inherit; }
