/* target.pigeoon.com — AdminLTE 4 iskeleti (ads ve pub ile aynı), müşteriye göre sade içerik bileşenleri (tg-*) */
:root {
    --pg-blue: #1a2fb0;
    --pg-blue-dark: #14248a;
    --pg-ground: #f4f6f9;
    --pg-card: #FFFFFF;
    --pg-field: #FFFFFF;
    --pg-line: #dee2e6;
    --pg-ink: #212529;
    --pg-muted: #6c757d;
    --pg-accent: #14248a;
    --pg-ok-bg: #d1e7dd; --pg-ok: #0f5132;
    --pg-warn-bg: #fff3cd; --pg-warn: #664d03;
    --pg-err-bg: #f8d7da; --pg-err: #842029;
    --pg-radius: .5rem;
    --pg-radius-sm: .375rem;
    --bs-primary: #1a2fb0; --bs-primary-rgb: 26, 47, 176; --bs-link-color: #1a2fb0; --bs-link-color-rgb: 26, 47, 176;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--pg-ink); font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
.tg-auth { background: var(--pg-ground); }
a { color: var(--pg-blue); }
a:hover { color: var(--pg-accent); }
h1 { font-size: 1.6rem; font-weight: 500; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 14px; }

/* Düzen: AdminLTE (app-header, app-sidebar, app-main) */
.app-sidebar { background: var(--pg-blue) !important; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.12); }
.app-sidebar .brand-link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; line-height: 1.2; padding: 10px 0; }
.app-sidebar .brand-image { height: 32px; width: auto; max-height: 32px; background: #fff; border-radius: 6px; padding: 4px 8px; float: none; margin: 0; }
.app-sidebar .sidebar-brand { height: auto; }
.app-sidebar .brand-text { color: #fff; font-size: 18px; font-weight: 700; }
.app-sidebar .brand-sub { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .5px; }
.app-sidebar .sidebar-menu .nav-link { color: rgba(255,255,255,.82); }
.app-sidebar .sidebar-menu .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-sidebar .sidebar-menu .nav-link.active { color: var(--pg-blue) !important; background: #fff !important; font-weight: 600; }
.app-sidebar .nav-header { color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: 1px; }
.tg-main { padding: 8px 12px 48px; min-width: 0; }
.tg-sub { color: var(--pg-muted); font-size: 13px; margin-bottom: 2px; }
.tg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--pg-line); }
.app-footer { font-size: 12px; }

/* Kartlar, formlar, düğmeler */
.tg-card { background: var(--pg-card); border: 0; border-radius: var(--pg-radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.tg-card > h2:first-child { margin: -1.25rem -1.25rem 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,.125); font-size: 1.05rem; font-weight: 600; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tg-label { display: block; font-weight: 600; margin: 12px 0 6px; }
.tg-input, .tg-select, .tg-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius-sm); background: var(--pg-field); font: inherit; color: inherit; min-height: 38px; padding: .375rem .75rem; }
.tg-input:focus, .tg-select:focus, .tg-textarea:focus { outline: 2px solid rgba(26,47,176,.25); border-color: var(--pg-blue); }
.tg-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.tg-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pg-blue); }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: var(--pg-radius-sm); border: 1px solid var(--pg-blue); background: var(--pg-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.tg-btn:hover { background: var(--pg-blue-dark); color: #fff; }
.tg-btn:disabled { opacity: .5; cursor: not-allowed; }
.tg-btn.secondary { background: #fff; color: var(--pg-blue); }
.tg-btn.secondary:hover { background: rgba(26,47,176,.06); color: var(--pg-blue); }
.tg-help { color: var(--pg-muted); font-size: 13px; margin-top: 6px; }
.tg-muted { color: var(--pg-muted); }
.tg-error { color: var(--pg-err); margin-top: 8px; }
.tg-msg { padding: 12px 16px; border-radius: var(--pg-radius-sm); margin-bottom: 14px; }
.tg-msg.ok { background: var(--pg-ok-bg); color: var(--pg-ok); }
.tg-msg.warn { background: var(--pg-warn-bg); color: var(--pg-warn); }
.tg-msg.err { background: var(--pg-err-bg); color: var(--pg-err); }
.tg-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e9ecef; color: var(--pg-muted); }
.tg-badge.ok { background: var(--pg-ok-bg); color: var(--pg-ok); }
.tg-badge.warn { background: var(--pg-warn-bg); color: var(--pg-warn); }
.tg-badge.err { background: var(--pg-err-bg); color: var(--pg-err); }
.tg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sayılar, adımlar */
.tg-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tg-stat { display: flex; flex-direction: column; min-width: 150px; padding: 14px 16px; background: #fff; border: 0; border-left: 4px solid var(--pg-blue); border-radius: var(--pg-radius-sm); color: inherit; text-decoration: none; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.tg-stat b { font-size: 24px; }
.tg-stat span { font-size: 12px; color: var(--pg-muted); }
a.tg-stat:hover { border-color: var(--pg-blue); color: inherit; }
.tg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tg-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tg-step-dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #e9ecef; color: var(--pg-muted); }
.tg-step-dot.done { background: var(--pg-ok-bg); color: var(--pg-ok); }
.tg-step-dot.now { background: var(--pg-blue); color: #fff; }

/* Tablolar */
.tg-table-wrap { overflow-x: auto; background: #fff; border: 0; border-radius: var(--pg-radius); box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.tg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tg-table tbody tr:hover td { background: rgba(0,0,0,.035); }
.tg-table th { text-align: left; font-weight: 600; color: var(--pg-muted); background: #f8f9fa; padding: 10px 12px; border-bottom: 1px solid var(--pg-line); white-space: nowrap; }
.tg-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.tg-table tr:last-child td { border-bottom: 0; }
.tg-table .num { text-align: right; white-space: nowrap; }
.tg-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #e9ecef; display: block; }
.tg-old { text-decoration: line-through; color: var(--pg-muted); font-size: 12px; }
.tg-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.tg-filters .tg-input, .tg-filters .tg-select { min-height: 40px; padding: 7px 10px; }
.tg-filters .tg-label { margin: 0 0 4px; font-size: 12px; }
.tg-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.tg-kv dt { color: var(--pg-muted); }
.tg-kv dd { margin: 0; overflow-wrap: anywhere; }
.tg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pg-line); margin-bottom: 18px; }
.tg-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--pg-muted); text-decoration: none; font-weight: 500; }
.tg-tabs a.active { color: var(--pg-blue); border-bottom-color: var(--pg-blue); font-weight: 700; }
.tg-pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; color: var(--pg-muted); }

/* Giriş sayfaları */
.tg-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.tg-auth-box { width: 100%; max-width: 440px; }
.tg-auth-box.wide { max-width: 640px; }
.tg-auth-brand { text-align: center; margin-bottom: 22px; }
.tg-auth-brand b { font-size: 28px; color: var(--pg-blue); }
.tg-auth-brand div { color: var(--pg-muted); }
.tg-auth-foot { text-align: center; margin-top: 16px; color: var(--pg-muted); font-size: 13px; }

/* Raporlar */
.tg-btn-ghost { background: transparent !important; color: var(--pg-ink, #1b1b1b) !important; border: 1px solid var(--pg-line) !important; }
.tg-table .text-end, .tg-table th.text-end { text-align: right; }

/* Giriş ve başvuru: bölünmüş ekran (solda altıgen ağ, sağda form; kutusuz) */
body.tg-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.tg-split-art { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0b1450; color: #fff; }
.tg-split-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tg-split-logo { position: absolute; left: 40px; top: 34px; }
.tg-split-logo img { height: 34px; background: #fff; border-radius: 8px; padding: 5px 10px; }
.tg-split-tag { position: absolute; left: 40px; right: 40px; bottom: 48px; }
.tg-split-h { font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.2; }
.tg-split-sub { margin-top: 10px; color: #c9d2ff; font-size: 15px; letter-spacing: .3px; }
.tg-split-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.tg-split-box { width: 100%; max-width: 420px; }
.tg-split-box.wide { max-width: 620px; }
.tg-split-brand { color: var(--pg-blue); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
/* Bu sayfalarda kartlar kutu değil, düz bölüm */
.tg-split .tg-card { background: transparent; box-shadow: none; padding: 0; margin: 0 0 22px; border: 0; }
.tg-split .tg-card > h2:first-child { margin: 0 0 18px; padding: 0; border: 0; font-size: 30px; font-weight: 600; }
.tg-split .tg-card + .tg-card { padding-top: 18px; border-top: 1px solid var(--pg-line); text-align: left !important; color: var(--pg-muted); }
.tg-split .tg-input, .tg-split .tg-select, .tg-split .tg-textarea { min-height: 44px; border-radius: 10px; }
.tg-split .tg-btn { min-height: 44px; padding: 0 22px; border-radius: 10px; }
.tg-split .tg-auth-foot { text-align: left; margin-top: 28px; }
@media (max-width: 900px) {
    body.tg-split { grid-template-columns: 1fr; }
    .tg-split-art { position: relative; height: 200px; }
    .tg-split-logo { left: 20px; top: 18px; }
    .tg-split-tag { left: 20px; right: 20px; bottom: 18px; }
    .tg-split-h { font-size: 22px; }
    .tg-split-sub { display: none; }
    .tg-split-main { padding: 28px 20px 40px; align-items: flex-start; }
}

/* Yan menü petek ve göstergeler */
.app-sidebar { overflow: hidden; }
.app-sidebar > .pg-side-hex { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.app-sidebar > .sidebar-brand, .app-sidebar > .sidebar-wrapper { position: relative; z-index: 1; }
.app-sidebar .sidebar-brand { background: transparent; }
.pg-kpi { background: #fff; border-radius: .5rem; padding: .85rem 1rem .5rem; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); border-top: 3px solid var(--k, #1a2fb0); height: 100%; }
.pg-kpi .l { font-size: 13px; color: #6c757d; }
.pg-kpi .v { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.pg-kpi .d { font-size: 12px; }
.pg-kpi .d.up { color: #198754; } .pg-kpi .d.down { color: #dc3545; } .pg-kpi .d.flat { color: #6c757d; }
.pg-kpi .s { position: relative; height: 34px; margin-top: 4px; }
.pg-chart { position: relative; height: 260px; }
