/* ============================================================================
 * Dosya         : assets/panel.css
 * Açıklama      : Disavow Paneli görsel stilleri. Kabuk (sol menü, üst çubuk,
 *                 kart, buton, form, mesaj) multicdn777 admin.css ile aynı
 *                 renk ve kalıpları kullanır; sol menü %15 genişliktedir.
 *                 Veri tabloları yoğun (çok kolonlu) görünüm içindir.
 * Versiyon      : 1.0.0
 * Son Güncelleme: 2026-11-29
 * Bağımlılık    : Poppins (Google Fonts), Font Awesome 6
 * ============================================================================ */

* { margin:0; padding:0; box-sizing:border-box; }
html, body { min-height:100%; overflow-x:hidden; }
body { font-family:'Poppins', sans-serif; background:#f0f2f5; color:#1f2937; font-size:13px; line-height:1.45; }
a { color:#2f4db6; text-decoration:none; }
a:hover { text-decoration:underline; }
input, select, textarea, button { font:inherit; color:inherit; }

/* ---------- Kabuk ---------- */
.admin-wrapper { display:flex; min-height:100vh; }
.sidebar { width:15%; min-width:190px; background:#1e2a3a; color:#fff; min-height:100vh; position:fixed; top:0; left:0; bottom:0; overflow-y:auto; z-index:1000; }
.sidebar h2 { display:flex; flex-direction:column; align-items:center; gap:8px; padding:22px 10px; background:#0f1a24; font-size:14px; font-weight:500; text-align:center; }
.sidebar h2 i { font-size:30px; color:#e67e22; }
.sidebar a { display:block; padding:12px 20px; color:#ecf0f1; text-decoration:none; font-weight:300; }
.sidebar a i { margin-right:10px; width:20px; text-align:center; }
.sidebar a:hover, .sidebar a.active { background:#2c3e50; text-decoration:none; }
.sidebar a.active { box-shadow:inset 3px 0 0 #e67e22; }
.content { margin-left:max(15%, 190px); width:calc(100% - max(15%, 190px)); padding:20px; min-width:0; }
.top-bar { background:#fff; padding:12px 20px; margin-bottom:16px; border-radius:6px; display:flex; justify-content:space-between; align-items:center; gap:12px; box-shadow:0 1px 3px rgba(0,0,0,.1); flex-wrap:wrap; }
.top-bar-left { display:flex; flex-direction:column; gap:2px; }
.top-bar-title { font-size:16px; font-weight:500; }
.top-bar-subtitle { color:#6b7280; font-size:12px; }
.top-bar-right { display:flex; align-items:center; gap:10px; }
.logout-btn { background:#e74c3c; color:#fff; padding:7px 12px; border-radius:6px; display:inline-flex; align-items:center; gap:8px; }
.logout-btn:hover { background:#c0392b; text-decoration:none; }
.top-bar-brand-mobile, .mobile-menu-toggle, .sidebar-mobile-bottom { display:none; }

/* ---------- Kart, başlık ---------- */
.panel-card { background:#fff; border-radius:6px; padding:16px; box-shadow:0 1px 2px rgba(0,0,0,.05); margin-bottom:14px; }
.panel-card.flush { padding:0; overflow:hidden; }
.panel-card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.panel-card.flush .panel-card-head { padding:14px 16px; margin:0; }
.panel-card-head h2 { font-size:15px; font-weight:500; display:flex; align-items:center; gap:8px; }
.panel-card-head h2 small { font-weight:300; color:#6b7280; font-size:12px; }
.muted { color:#6b7280; }
.small { font-size:12px; }
.num { font-variant-numeric:tabular-nums; }
.r { text-align:right; }
.nowrap { white-space:nowrap; }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.spread { justify-content:space-between; }
.grid { display:grid; gap:14px; }
.g2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns:repeat(4, minmax(0,1fr)); }
.mt { margin-top:12px; }

/* ---------- Buton, form ---------- */
.button { background:#3498db; color:#fff; height:34px; padding:0 14px; border:none; border-radius:6px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-weight:500; font-size:13px; white-space:nowrap; text-decoration:none; }
.button:hover { background:#2980b9; text-decoration:none; }
.button-secondary { background:#eef0f3; color:#333; }
.button-secondary:hover { background:#e2e5ea; }
.btn-danger { background:#c0392b; }
.btn-danger:hover { background:#a93226; }
.btn-green { background:#1e8e5a; }
.btn-green:hover { background:#18764a; }
.btn-sm { height:28px; padding:0 10px; font-size:12px; }
.button[disabled] { opacity:.5; cursor:not-allowed; }
.panel-input { height:32px; border:1px solid #d8d8d8; border-radius:6px; padding:0 9px; background:#fff; min-width:0; width:100%; }
.panel-input:focus { border-color:#888; outline:none; }
textarea.panel-input { height:auto; padding:8px 9px; resize:vertical; line-height:1.5; }
.mono { font-family:ui-monospace, Menlo, Consolas, monospace; font-size:12px; }
label { font-weight:300; }
.lbl { display:block; font-size:11px; font-weight:500; color:#4b5563; margin-bottom:3px; }
.chk { display:inline-flex; align-items:center; gap:5px; font-size:12px; cursor:pointer; }
.fgrid { display:grid; grid-template-columns:96px 1fr; gap:6px 8px; align-items:center; }
.fgrid > .lbl { margin:0; }
.mm { display:flex; gap:4px; align-items:center; }
.mm .panel-input { width:100%; }
.fblock { display:flex; flex-direction:column; gap:8px; min-width:0; }
.fblock > b { font-weight:500; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.fsep { border-top:1px solid #eef0f3; padding-top:12px; margin-top:12px; }
.is-set { border-color:#3498db !important; background:#f3f9fe; }

/* ---------- Mesajlar, rozetler ---------- */
.message { padding:11px 38px 11px 14px; margin-bottom:14px; border-radius:6px; position:relative; }
.success { background:#d4edda; color:#155724; }
.error { background:#f8d7da; color:#721c24; }
.warning { background:#fef3c7; color:#92400e; }
.info { background:#dbeafe; color:#1e3a8a; }
.flash-close { position:absolute; top:8px; right:10px; background:none; border:none; font-size:20px; line-height:1; opacity:.55; cursor:pointer; }
.flash-close:hover { opacity:1; }
.tag { display:inline-block; padding:1px 7px; border-radius:4px; font-size:11px; font-weight:400; background:#eceef2; color:#3f4654; white-space:nowrap; }
.tag.red { background:#fde7e4; color:#8f1d12; }
.tag.amber { background:#fff1d6; color:#7a4a00; }
.tag.green { background:#e2f3ee; color:#0b5e4d; }
.tag.blue { background:#e3eafd; color:#1b3aa8; }
.chip { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px; border-radius:13px; border:1px solid #d1d5db; background:#fff; font-size:12px; color:#1f2937; cursor:pointer; }
.chip:hover { text-decoration:none; background:#f6f7f9; }
.chip.on { border-color:#3498db; background:#e8f3fc; color:#1b5e8f; }
.strip { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:10px 14px; border-radius:6px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.05); margin-bottom:14px; }
.strip.sel { background:#eef6fd; box-shadow:inset 0 0 0 1px #3498db; }
.push { margin-left:auto; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x:auto; }
table.dt { width:100%; border-collapse:collapse; background:#fff; font-size:12px; }
.dt th { text-align:left; font-weight:500; color:#374151; padding:9px 8px; background:#f8f9fa; border-bottom:1px solid #e5e7eb; vertical-align:bottom; }
.dt td { padding:8px 8px; border-bottom:1px solid #eef0f3; vertical-align:top; font-weight:300; }
.dt tbody tr:hover td { background:#fafbfc; }
.dt td b, .dt td strong { font-weight:500; }
.dt th a { color:inherit; }
.dt .dom { font-weight:500; font-size:13px; overflow-wrap:anywhere; }
.dt .domcell { min-width:210px; }
.dt .domcell .tag { margin-top:3px; }
.dt .anc { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dt .url { max-width:340px; word-break:break-all; }
.dt .ctx { color:#6b7280; max-width:420px; }
.dt .ctx mark { background:#fff1d6; color:inherit; padding:0 2px; }
.empty-state { padding:26px 20px; text-align:center; color:#6b7280; }
.admin-pagination { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.admin-pagination a, .admin-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 10px; border-radius:6px; background:#fff; color:#333; }
.admin-pagination .current { background:#3498db; color:#fff; }

/* ---------- İçe aktarım ---------- */
.dropzone { border:2px dashed #9aa1ae; border-radius:8px; background:#fff; padding:26px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; }
.dropzone.over { border-color:#3498db; background:#f3f9fe; }
.dropzone i { font-size:30px; color:#3498db; }
.bar { height:6px; border-radius:3px; background:#eceef2; overflow:hidden; margin-top:4px; min-width:120px; }
.bar > div { height:100%; background:#3498db; }

/* ---------- Giriş ---------- */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-card { width:100%; max-width:380px; background:#fff; border-radius:8px; padding:28px; box-shadow:0 1px 3px rgba(0,0,0,.1); display:flex; flex-direction:column; gap:12px; }
.login-card h1 { font-size:20px; font-weight:600; display:flex; align-items:center; gap:10px; }
.login-card h1 i { color:#e67e22; }
.login-card .panel-input { height:40px; }
.login-card .button { height:42px; width:100%; }

/* ---------- Mobil (≤1024px): sol menü açılır menü olur ---------- */
@media (max-width:1024px) {
    .sidebar { top:60px; right:0; width:100%; min-height:auto; bottom:auto; max-height:calc(100vh - 60px); display:none; z-index:1040; box-shadow:0 8px 24px rgba(0,0,0,.2); }
    .sidebar.is-open { display:block; }
    .sidebar h2 { display:none; }
    .content { margin-left:0; width:100%; padding:14px; padding-top:74px; }
    .top-bar { position:fixed; top:0; left:0; right:0; margin:0; border-radius:0; height:60px; padding:0 14px; z-index:1050; flex-wrap:nowrap; }
    .top-bar-left, .top-bar-right .top-bar-subtitle, .top-bar-right .logout-btn { display:none; }
    .top-bar-brand-mobile { display:inline-flex; align-items:center; gap:10px; flex:1; font-size:15px; color:#1e2a3a; }
    .top-bar-brand-mobile i { color:#e67e22; }
    .mobile-menu-toggle { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; background:none; border:none; font-size:22px; color:#1e2a3a; cursor:pointer; }
    .sidebar-mobile-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-top:1px solid rgba(255,255,255,.08); }
    .sidebar-logout { background:#e74c3c; color:#fff !important; padding:8px 14px !important; border-radius:6px; display:inline-flex !important; }
    .g2, .g3, .g4 { grid-template-columns:1fr; }
}

/* ---------- Yardımcılar ---------- */
.pad { padding:10px 16px; }
.gside { grid-template-columns:minmax(0,1fr) 340px; }
.panel-input[data-w="l"] { max-width:320px; }
.panel-input[data-w="s"] { max-width:150px; }
.strip .panel-input { width:auto; flex:1 1 140px; }
@media (max-width:1024px) { .gside { grid-template-columns:1fr; } }
