﻿* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: #f4f6f9; color: #1f2933; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { margin: 0 0 4px; font-size: 26px; }
h2 { margin: 0 0 12px; font-size: 16px; color: #243b53; }
h3 { margin: 18px 0 6px; font-size: 14px; }
.sub { color: #52606d; margin: 0 0 18px; }
.card { background: #fff; border: 1px solid #d9e2ec; border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.grid label { display: flex; flex-direction: column; font-size: 13px; color: #334e68; gap: 4px; }
.grid label.chk { flex-direction: row; align-items: center; gap: 8px; }
.span2 { grid-column: span 2; }
.hint { margin: 0; font-size: 12px; color: #627d98; line-height: 1.45; font-weight: normal; }
label .hint { margin-top: 2px; }
.sugg-title { font-size: 12px; color: #334e68; margin: 2px 0 6px; font-weight: 600; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg a { display: inline-block; padding: 4px 10px; border: 1px solid #bcccdc; border-radius: 14px; background: #f0f4f8;
          color: #243b53; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.sugg a:hover { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.sugg a.air { border-color: #9ec5fe; }
.sugg a.city { border-color: #b7e4c7; }
.sugg a.done, .sugg a.done:hover { color: #c62828; border-color: #e57373; background: #fdecea; font-weight: 600; }
.sugg a.done:hover { background: #c62828; color: #fff; }
.red { color: #c62828; }
.sugg a.sel { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.sugg a.sel.done { background: #c62828; color: #fff; border-color: #c62828; }
.sugg a.sel::before { content: "✓ "; }
.mini { font-weight: normal; font-size: 12px; color: #1f6feb; text-decoration: none; margin-left: 4px; }
.mini:hover { text-decoration: underline; }
.mini-count { color: #1e7b34; font-weight: 600; margin-left: 6px; }
textarea#txtQuery { font-size: 14px; line-height: 1.5; }
.batch { margin: 10px 0; border: 1px solid #d9e2ec; border-radius: 6px; padding: 8px 10px; background: #fafcfe; }
.batch-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.batch ol { margin: 0; padding-left: 22px; font-size: 13px; }
.batch li { margin: 2px 0; }
.batch li.cur { font-weight: 700; color: #0b5cad; }
.batch li.ok { color: #1e7b34; }
.batch li.stop { color: #b54708; }
.batch li.wait { color: #627d98; }
.batch li.err { color: #c62828; }
input.searched { border-color: #c62828 !important; color: #c62828; background: #fff5f5; }
.querywarn { color: #c62828; font-size: 12px; font-weight: 600; }
.dberror { display: block; background: #fdecea; color: #b71c1c; border: 1px solid #f5a3a3; padding: 10px 12px; border-radius: 6px; margin: 8px 0 14px; font-size: 13px; white-space: pre-wrap; }
code { background: #eef2f7; padding: 0 4px; border-radius: 3px; font-size: 12px; }
input[type=text], input[type=number], select, textarea { padding: 8px; border: 1px solid #bcccdc; border-radius: 5px; font-size: 14px; width: 100%; font-family: inherit; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.btn { padding: 9px 18px; border: 1px solid #9fb3c8; background: #fff; border-radius: 5px; cursor: pointer; font-size: 14px; }
.btn.primary { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.btn.resume { background: #1e7b34; color: #fff; border-color: #1e7b34; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }
.error { color: #c62828; display: block; margin-bottom: 10px; }
.status { font-weight: 600; margin-top: 8px; }
.state-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 16px; font-weight: 700; font-size: 13px; }
.badge.idle { background: #eef2f7; color: #486581; }
.badge.run { background: #e3f2fd; color: #0b5cad; animation: pulse 1.6s infinite; }
.badge.done { background: #e6f4ea; color: #1e7b34; }
.badge.stop { background: #fff4e5; color: #b54708; }
.badge.err { background: #fdecea; color: #c62828; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.elapsed { color: #52606d; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stat { border: 1px solid #d9e2ec; border-radius: 8px; padding: 10px; text-align: center; background: #fafcfe; }
.stat .n { display: block; font-size: 22px; font-weight: 700; color: #243b53; }
.stat .t { font-size: 12px; color: #627d98; }
.stat.ok .n { color: #1e7b34; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.commit { margin: 10px 0; padding: 10px 12px; background: #fff8e1; border: 1px solid #f5d27a; border-radius: 6px; font-size: 13px; }
.commit .btn { margin-left: 8px; padding: 6px 12px; font-size: 13px; }
.countdown { color: #b54708; font-weight: 600; margin-top: 4px; }
.file { color: #52606d; font-size: 13px; margin: 4px 0 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { border: 1px solid #d9e2ec; padding: 6px 8px; text-align: left; vertical-align: top; word-break: break-word; }
.tbl th { background: #f0f4f8; }
.log { background: #102a43; color: #d9e2ec; padding: 10px; border-radius: 6px; max-height: 360px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
@media (max-width: 700px) { .grid, .grid.g3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---- Hatalı taramalar (kırmızı) ---- */
.sugg a.err, .sugg a.err:hover { background: #c62828; color: #fff; border-color: #8e0000; font-weight: 700; }
.sugg a.err::before { content: "✗ "; }
.sugg a.err.done { background: #c62828; color: #fff; }
.sugg a.sel.err::before { content: "✓ ✗ "; }
.errchip { display: inline-block; padding: 0 6px; border-radius: 8px; background: #c62828; color: #fff; font-weight: 700; }
.tbl tr.row-err td { background: #fdecea; color: #b71c1c; font-weight: 600; }
.tbl tr.row-ok td { background: #f1faf3; }
.tbl tr.row-skip td { color: #829ab1; }
.status .st-err { color: #c62828; }
.log .logerr { color: #ff8a80; font-weight: 700; }
textarea.searched { border-color: #c62828 !important; background: #fff5f5; }
/* ---- Serper kontör uyarısı ---- */
.kredi { display: block; padding: 10px 12px; border-radius: 6px; margin: 8px 0 12px; font-size: 13.5px; white-space: pre-wrap; }
.kredi.bitti { background: #c62828; color: #fff; font-weight: 700; font-size: 15px; animation: pulse 1.6s infinite; }
.kredi.az { background: #fff4e5; color: #b54708; border: 1px solid #f5c27a; font-weight: 600; }
.kredi.ok { background: #eef7f0; color: #1e7b34; border: 1px solid #b7e4c7; padding: 4px 10px; display: inline-block; }

/* ---- Çoklu ülke seçimi ---- */
.ulkeler .sugg-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ulke-ara { width: 200px !important; padding: 4px 8px !important; font-size: 12.5px !important; font-weight: normal; }
.ulke-liste { max-height: 190px; overflow: auto; border: 1px solid #d9e2ec; border-radius: 6px; padding: 6px; background: #fafcfe;
              display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ulke-liste > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border: 1px solid #d9e2ec; border-radius: 14px;
                     background: #fff; font-size: 12.5px; cursor: pointer; }
.ulke-liste > span:has(input:checked) { background: #1f6feb; border-color: #1f6feb; color: #fff; font-weight: 600; }
.ulke-liste label { cursor: pointer; }
.ulke-blok { border: 1px solid #d9e2ec; border-left: 4px solid #1f6feb; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
.ulke-blok.bos { border-left-color: #bcccdc; }
.ulke-bas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.ulke-bas select.dilsec { width: auto; padding: 3px 6px; font-size: 12.5px; }
.ulke-link { margin-left: auto; }
.mini.x { color: #c62828; }
.ulke-sayi { color: #1e7b34; font-weight: 600; }
details.gecmis { margin-top: 6px; font-size: 12px; color: #334e68; }
details.gecmis summary { cursor: pointer; margin-bottom: 4px; }
textarea#txtQuery, textarea[id$=txtQuery] { font-size: 13.5px; line-height: 1.5; font-family: Consolas, "Segoe UI", monospace; }
.baglanti { background: #fff4e5; color: #b54708; border: 1px solid #f5c27a; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
