/* AHD Portal - Premium UI */
:root{ --ahd-primary:#163967; --ahd-accent:#E3B576; --ahd-bg:#f6f7fb; --ahd-text:#0f172a; --ahd-muted:#667085; --ahd-border:#e6e8ee; --ahd-radius:18px; --ahd-radius-sm:12px; --ahd-shadow:0 12px 34px rgba(22,57,103,.12); }
.ahd-dark{ --ahd-bg:#0f172a; --ahd-text:#e5e7eb; --ahd-muted:#94a3b8; --ahd-border:#243041; --ahd-shadow:0 12px 34px rgba(0,0,0,.45); background:#0b1423; color:var(--ahd-text); }
.ahd-dark .ahd-card,.ahd-dark .ahd-step{ background:#111b2b; border-color:#223049; }
.ahd-dark .ahd-grid input,.ahd-dark .ahd-grid textarea,.ahd-dark .ahd-grid select{ background:#0d1a2a; border-color:#223049; color:#e2e8f0; }
.ahd-dark .ahd-btn.ahd-outline{ color:#e2e8f0; border-color:#3b4c69; }
.ahd-dark .ahd-topbar{ background:linear-gradient(135deg,#0e274a,#0a1a33); }

*{ box-sizing:border-box; } .ahd-wrap{ background:var(--ahd-bg); padding:24px; border-radius:var(--ahd-radius); }
.ahd-auth{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.ahd-card{ background:#fff; border:1px solid var(--ahd-border); border-radius:var(--ahd-radius); padding:24px; box-shadow:var(--ahd-shadow); position:relative; overflow:hidden; }
.ahd-card h3{ margin:0 0 6px; font-size:20px; letter-spacing:.2px; display:flex; align-items:center; gap:10px; color:var(--ahd-primary); }
.ahd-sub{ margin:0 0 14px; color:var(--ahd-muted); font-size:13px; }

.ahd-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ahd-grid label{ display:flex; flex-direction:column; gap:6px; color:var(--ahd-text); font-weight:600; position:relative; }
.ahd-grid input,.ahd-grid textarea,.ahd-grid select{ width:100%; padding:12px 14px; border:1px solid var(--ahd-border); border-radius:var(--ahd-radius-sm); background:#fff; color:var(--ahd-text); }
.ahd-grid input:focus,.ahd-grid textarea:focus,.ahd-grid select:focus{ outline:none; border-color: var(--ahd-primary); box-shadow: 0 0 0 3px rgba(22,57,103,.12); }
.ahd-grid textarea{ min-height:120px; } .ahd-row{ display:flex; gap:16px; align-items:center; } .ahd-row>*{ flex:1; }
.ahd-grid .ahd-toggle-pass{ position:absolute; right:12px; top:50%; transform:translateY(-50%); font-weight:700; text-decoration:none; }
.ahd-grid input[type="password"]{ padding-right:72px; }
.ahd-grid input[type="email"]{ min-height:44px; }
.ahd-spacer{ height:12px; }
.ahd-col-2{ grid-column:1 / -1; }
.ahd-veh .ahd-col-2 textarea{ width:100%; }

.ahd-btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:14px; border:1px solid transparent; cursor:pointer; font-weight:800; letter-spacing:.2px; background:var(--ahd-primary); color:#fff; text-decoration:none; transition:all .18s ease; }
.ahd-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(22,57,103,.22); }
.ahd-btn.ahd-outline{ background:transparent; color:var(--ahd-primary); border-color:var(--ahd-primary); }
.ahd-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.ahd-actions .ahd-link{ color:var(--ahd-primary); text-decoration:none; font-weight:700; padding:10px 14px; border-radius:10px; border:1px solid var(--ahd-primary); background:#f8fbff; }
.ahd-actions .ahd-link:hover{ text-decoration:underline; }

.ahd-success{ background:linear-gradient(180deg,#ecfdf5,#e6fff6); color:#065f46; border:1px solid #a7f3d0; padding:14px 16px; border-radius:14px; margin-bottom:16px; display:flex; gap:10px; align-items:center; }
.ahd-error{ background:linear-gradient(180deg,#fff5f5,#ffeaea); color:#991b1b; border:1px solid #fecaca; padding:14px 16px; border-radius:14px; margin-bottom:16px; display:flex; gap:10px; align-items:center; }
.ahd-notice{ background:#eff6ff; color:#1e3a8a; border:1px solid #bfdbfe; padding:14px 16px; border-radius:14px; }

.ahd-claim{ display:flex; flex-direction:column; gap:18px; } .ahd-step{ background:#fff; border:1px solid var(--ahd-border); border-radius:var(--ahd-radius); padding:20px; box-shadow:var(--ahd-shadow); } .ahd-step h3{ margin-top:0; color:var(--ahd-primary); }

.ahd-stepper{ background:#fff; border:1px solid var(--ahd-border); border-radius:var(--ahd-radius); padding:12px; box-shadow:var(--ahd-shadow); display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.ahd-stepper .bar{ flex:1; height:10px; background:#eef2f6; border-radius:999px; overflow:hidden; position:relative; } .ahd-stepper .bar>span{ position:absolute; inset:0 auto 0 0; width:0%; background:linear-gradient(90deg,var(--ahd-primary),var(--ahd-accent)); border-radius:inherit; transition:width .25s ease; }
.ahd-stepper .pct{ min-width:60px; font-weight:800; color:var(--ahd-primary); text-align:right; } .ahd-stepper .lbl{ font-size:13px; color:var(--ahd-muted); min-width:160px; }

.ahd-vehicle{ margin-bottom:20px; border:1px dashed #dbe2ea; } .ahd-vehicle h4{ margin:0 0 12px; color:var(--ahd-primary); } .ahd-vehicle input[type="file"]{ border-style:dashed; }

.ahd-topbar{ background:linear-gradient(135deg,var(--ahd-primary),#0d2441); color:#fff; padding:16px 20px; border-radius:var(--ahd-radius); display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; }
.ahd-topbar .brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px; } .ahd-topbar .brand-badge{ width:32px; height:32px; border-radius:8px; background:linear-gradient(135deg,var(--ahd-accent),#f5d7a9); }
.ahd-topbar .tools{ display:flex; gap:10px; }
.ahd-topbar .agency-name{ color:#fff; font-weight:900; font-size:20px; letter-spacing:.2px; }

.ahd-choices{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ahd-choice{ display:flex; flex-direction:column; gap:8px; padding:18px; border:1px solid var(--ahd-border); border-radius:var(--ahd-radius); background:#fff; box-shadow:var(--ahd-shadow); text-decoration:none; color:inherit; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.ahd-choice:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(22,57,103,.18); border-color:var(--ahd-primary); }
.ahd-choice .ic{ font-size:28px; line-height:1; }
.ahd-choice .ttl{ font-weight:800; color:var(--ahd-primary); }
.ahd-choice .txt{ color:var(--ahd-muted); font-size:13px; }
@media (max-width:980px){ .ahd-choices{ grid-template-columns:1fr; } }

.ahd-table-wrap{ width:100%; overflow:auto; } .ahd-table{ width:100%; border-collapse:collapse; } .ahd-table th,.ahd-table td{ text-align:left; padding:12px; border-bottom:1px solid var(--ahd-border); font-size:14px; }
.ahd-badge{ display:inline-block; padding:6px 10px; border-radius:999px; background:rgba(22,57,103,.08); color:var(--ahd-primary); font-weight:800; }
.ahd-pagination{ display:flex; gap:8px; justify-content:flex-end; margin-top:12px; flex-wrap:wrap; } .ahd-page a,.ahd-page span{ display:inline-block; padding:8px 12px; border:1px solid var(--ahd-border); border-radius:10px; }

@media (max-width:1200px){ .ahd-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:980px){ .ahd-auth{ grid-template-columns:1fr; } }
@media (max-width:680px){ .ahd-grid{ grid-template-columns:1fr; } .ahd-card{ padding:18px; } }

/* Extra small/mobile tweaks */
@media (max-width:600px){
  .ahd-topbar{ flex-direction:column; align-items:flex-start; gap:10px; }
  .ahd-topbar .tools{ width:100%; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end }
  .ahd-btn{ padding:10px 12px; font-size:15px; }
  .ahd-btn.large{ width:100%; justify-content:center; }
  .ahd-actions{ width:100%; justify-content:space-between }
  .ahd-table th, .ahd-table td{ padding:10px; font-size:14px; }
  .ahd-badge{ padding:6px 8px; font-size:12px; }
  .ahd-choices{ grid-template-columns:1fr; }
}

/* Responsive table -> card on mobile for general tables (.ahd-table) */
@media (max-width:960px){
  .ahd-table thead{display:none}
  .ahd-table tbody tr{display:block;margin-bottom:14px;border-radius:12px;border:1px solid var(--ahd-border);background:var(--ahd-bg);box-shadow:0 8px 24px rgba(2,6,23,.04);overflow:hidden;padding:8px}
  .ahd-table tbody td{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:0}
  .ahd-table tbody td::before{content:attr(data-label);color:var(--ahd-muted);font-weight:700;margin-right:8px}
  .ahd-table .ahd-btn{ padding:8px 10px; font-size:14px }
  .ahd-table .ahd-btn.ahd-outline{ background:transparent; color:var(--ahd-accent); border:1px solid rgba(11,104,255,.12); }
  .ahd-table .ahd-badge{ display:inline-block; min-width:80px; text-align:center }
}

/* Override button text color to white for readability */
.ahd-btn, .ahd-btn:hover, .ahd-btn:focus { color: #fff !important; }
.ahd-btn.ahd-outline { border-color:#fff !important; }
.ahd-authbar a { color:#fff !important; }

/* Button readability overrides */
.ahd-wrap .ahd-btn,
.ahd-wrap .ahd-btn:hover,
.ahd-wrap .ahd-btn:focus { color:#fff !important; }
.ahd-wrap .ahd-btn.ahd-outline { border-color:#fff !important; }
.ahd-topbar .tools .ahd-btn { color:#fff !important; border-color:#fff !important; }
.ahd-authbar a { color:#fff !important; border-color:#fff !important; background:rgba(255,255,255,0.08); }

/* Admin board button color fix */
.ahd-table .ahd-btn,
.ahd-table .ahd-btn:hover,
.ahd-table .ahd-btn:focus { 
  color:#fff !important; 
  background-color:#102C4F !important; 
  border-color:#102C4F !important;
}

.ahd-authbar-min { display:none; }

/* Modal */
.ahd-modal { position:fixed; inset:0; background:rgba(12,23,44,.65); display:none; align-items:center; justify-content:center; opacity:0; pointer-events:none; z-index:99999; transition:opacity .18s ease; padding:16px; }
.ahd-modal.is-open { display:flex; opacity:1; pointer-events:auto; }
.ahd-modal__inner { background:#fff; border-radius:16px; padding:22px; width:100%; max-width:720px; position:relative; box-shadow:0 24px 70px rgba(0,0,0,.25); }
.ahd-modal__close { position:absolute; right:14px; top:12px; border:none; background:transparent; font-size:22px; cursor:pointer; }
.ahd-modal .ahd-grid { grid-template-columns:1fr 1fr; }
.ahd-modal .ahd-grid label { color:#0f2642; font-weight:700; }
@media(max-width:720px){ .ahd-modal__inner{max-width:96vw;} .ahd-modal .ahd-grid{grid-template-columns:1fr;} }
.ahd-modal-open { overflow:hidden; }

/* Bedeni zorunlu belgeler kutucuk stili */
.ahd-card .ahd-files-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px 18px; margin-top:8px; }
.ahd-card .ahd-files-grid label{ background:#f9fbff; border:1px solid var(--ahd-border); border-radius:12px; padding:10px 12px; box-shadow:0 8px 20px rgba(15,38,66,.06); }
.ahd-card .ahd-files-grid label strong{ display:block; margin-bottom:6px; color:#0f2642; font-size:13px; }
.ahd-card .ahd-files-grid input[type="file"]{ border:1px dashed #d0d9e6; background:#fff; border-radius:10px; padding:8px; width:100%; }
.ahd-card .ahd-files-grid input[type="file"]::-webkit-file-upload-button{ border:none; background:var(--ahd-primary); color:#fff; border-radius:8px; padding:8px 12px; cursor:pointer; }
.ahd-card .ahd-files-grid input[type="file"]::file-selector-button{ border:none; background:var(--ahd-primary); color:#fff; border-radius:8px; padding:8px 12px; cursor:pointer; }

/* AHD v1.7.5 UI polish */
.ahd-admin { padding: 16px; }
.ahd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 16px; }
.ahd-grid label { display: flex; flex-direction: column; color: #E6EDF5; font-size: 13px; }
.ahd-grid input, .ahd-grid select { background:#fff; color:#0f2642; border:1px solid #d4dbea; border-radius:8px; padding:10px 12px; height:40px; }
.ahd-btn { background:#102C4F; color:#fff; border:none; border-radius:10px; padding:10px 16px; height:40px; font-weight:600; }
.ahd-btn.ahd-outline { background:#102C4F; color:#fff; }
.ahd-table { width:100%; border-collapse:separate; border-spacing:0; background:#ffffff; color:#0f2642; border-radius:12px; overflow:hidden; }
.ahd-table thead th { position:sticky; top:0; background:#F5F7FB; color:#102C4F; text-align:left; padding:12px; font-weight:700; border-bottom:1px solid #e6eaf3; z-index:2; }
.ahd-table td { padding:12px; border-bottom:1px solid #eef2f8; vertical-align:middle; }
.ahd-table tr:nth-child(even) td { background:#FAFCFF; }
.ahd-table select { width:200px; }
.ahd-table .status form { display:flex; gap:8px; align-items:center; }
.ahd-table .tc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 900px){
  .ahd-grid { grid-template-columns: 1fr; }
}
/* AHD – yönetici liste okunabilirlik */
.ahd-admin { padding: 16px; }
.ahd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 16px; }
.ahd-grid label { display:flex; flex-direction:column; color:#E6EDF5; font-size:13px; }
.ahd-grid input, .ahd-grid select { background:#fff; color:#0f2642; border:1px solid #d4dbea; border-radius:8px; padding:10px 12px; height:40px; }
.ahd-btn { background:#102C4F; color:#fff; border:none; border-radius:10px; padding:10px 16px; height:40px; font-weight:600; }
.ahd-btn.ahd-outline { background:#102C4F; color:#fff; }
.ahd-table { width:100%; border-collapse:separate; border-spacing:0; background:#ffffff; color:#0f2642; border-radius:12px; overflow:hidden; }
.ahd-table thead th { position:sticky; top:0; background:#F5F7FB; color:#102C4F; text-align:left; padding:12px; font-weight:700; border-bottom:1px solid #e6eaf3; z-index:2; }
.ahd-table td { padding:12px; border-bottom:1px solid #eef2f8; vertical-align:middle; }
.ahd-table tr:nth-child(even) td { background:#FAFCFF; }
.ahd-table select { width:200px; }
.ahd-table .status form { display:flex; gap:8px; align-items:center; }
.ahd-table .tc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 900px){ .ahd-grid { grid-template-columns:1fr; } }
