/* =====================
   B4B Pazarlama Dashboard
   Global Hırdavat – 2026
   ===================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #070c19;
    --surface: #0d1528;
    --surface-2: #121c33;
    --surface-3: #182238;
    --border: rgba(255,255,255,0.07);
    --border-light: rgba(255,255,255,0.12);
    --text: #e8edf8;
    --text-muted: rgba(232,237,248,0.45);
    --text-dim: rgba(232,237,248,0.25);
    --primary: #6366f1;
    --primary-glow: rgba(99,102,241,0.25);
    --success: #10b981;
    --success-glow: rgba(16,185,129,0.20);
    --warning: #f59e0b;
    --warning-glow: rgba(245,158,11,0.20);
    --danger: #ef4444;
    --danger-glow: rgba(239,68,68,0.20);
    --accent: #06b6d4;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 10% 10%, rgba(99,102,241,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(16,185,129,0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* =========== HEADER =========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,12,25,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.nav-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    padding-left: 12px;
}

.nav-tab {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-tab.active {
    color: #fff;
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.3);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.user-badge {
    font-size: 13px;
    color: var(--text-muted);
}

.user-badge span { color: var(--text); font-weight: 500; }

.btn-logout {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(239,68,68,0.10);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* =========== MAIN LAYOUT =========== */
.main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    position: relative;
    z-index: 1;
}

.page { display: none; animation: fadeIn 0.25s ease; }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========== PAGE HEADER =========== */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* =========== STAT CARDS =========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px 2px 0 0;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* =========== FILTER PANEL =========== */
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    flex: 1;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.filter-group select,
.filter-group input {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    outline: none;
    transition: all var(--transition);
    width: 100%;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group select option { background: #0d1528; }

.btn-primary {
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    height: 38px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    padding: 9px 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    height: 38px;
}

.btn-secondary:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* =========== TABLE =========== */
.table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.table-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.record-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.table-search input {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    width: 220px;
    transition: all var(--transition);
}

.table-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    background: var(--surface-2);
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

thead th:hover { color: var(--text); }
thead th.sorted { color: var(--primary); }

tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition);
}

tbody tr:hover { background: rgba(255,255,255,0.025); }
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 6px 10px;
    color: var(--text);
    white-space: nowrap;
}

tbody td.wrap { white-space: normal; max-width: 280px; }

/* =========== SCORE BADGES =========== */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.score-critical {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.25);
}

.score-warning {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.25);
}

.score-good {
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.2);
}

.score-neutral {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Trend değişim */
.change-positive { color: #34d399; font-weight: 600; }
.change-negative { color: #f87171; font-weight: 600; }
.change-neutral  { color: var(--text-muted); }

/* Ciro formatı */
.ciro-cell { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ciro-big { font-weight: 600; }

/* =========== EMPTY/LOADING STATE =========== */
.state-container {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.state-container .state-icon { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.5; }
.state-container h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.state-container p { font-size: 14px; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99,102,241,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========== AUTOCOMPLETE =========== */
.autocomplete-wrapper { position: relative; }

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #182238;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-height: 280px;
    overflow-y: auto;
    z-index: 200;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition);
}

.autocomplete-item:hover { background: rgba(99,102,241,0.12); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item .ac-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* =========== CIRO CHART =========== */
.mini-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    max-width: 80px;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.6s ease;
}

/* =========== FİRMA DETAY =========== */
.detay-secim-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.detay-firma-header {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(16,185,129,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detay-firma-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.4px;
}

.detay-firma-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 3px;
}

.detay-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.detay-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detay-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}

.detay-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Info Table (key-value çiftleri) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.info-table tr td:first-child {
    color: var(--text-muted);
    font-size: 12px;
    padding: 7px 8px 7px 0;
    white-space: nowrap;
    width: 45%;
    vertical-align: top;
}

.info-table tr td:last-child {
    color: var(--text);
    padding: 5px 0;
    font-weight: 500;
}

.info-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.info-table tr:last-child { border-bottom: none; }

/* Trend table */
.trend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.trend-table thead th {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    background: none;
    position: static;
    cursor: default;
}

.trend-table tbody td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-variant-numeric: tabular-nums;
}

.trend-table tbody tr:last-child td { border-bottom: none; }

.trend-table .highlight-row td {
    background: rgba(99,102,241,0.07);
    font-weight: 600;
}

/* Note inputs */
.note-input {
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all var(--transition);
}

.note-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.note-textarea {
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition);
}

.note-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.mono { font-family: monospace; font-size: 12px; color: var(--text-muted) !important; }

/* SVG Chart */
#chartContainer svg text { font-family: 'Inter', sans-serif; }

@media (max-width: 1100px) {
    .detay-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .detay-grid {
        grid-template-columns: 1fr;
    }
}

/* =========== ROW HIGHLIGHT (geri dönüşte) =========== */
@keyframes rowFlash {
    0%   { background: rgba(99,102,241,0.28); }
    60%  { background: rgba(99,102,241,0.14); }
    100% { background: transparent; }
}
tr.row-highlight-flash {
    animation: rowFlash 1.4s ease-out forwards;
}

/* =========== SCROLLBAR =========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.32); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.52); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.32) rgba(255,255,255,0.05); }

/* =========== STAT CARD ICONS =========== */
.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.stat-icon-primary { background: rgba(99,102,241,0.15); color: var(--primary); }
.stat-icon-danger  { background: rgba(239,68,68,0.15);  color: #f87171; }
.stat-icon-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-icon-success { background: rgba(16,185,129,0.15); color: #34d399; }
.stat-icon-accent  { background: rgba(6,182,212,0.15);  color: var(--accent); }

/* =========== MOBILE BOTTOM NAV =========== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7,12,25,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-light);
    z-index: 500;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
.mbn-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
    position: relative;
}
.mbn-tab svg { width: 22px; height: 22px; stroke-width: 1.8; }
.mbn-tab.active { color: var(--primary); }
.mbn-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 768px) {
    /* Header: logo + user on one compact row, nav tabs hidden */
    .header { padding: 0 14px; }
    .header-inner { height: 54px; gap: 10px; }
    .nav-tabs { display: none; }
    .user-badge { display: none; }
    .btn-logout { font-size: 11px; padding: 6px 10px; }
    .mobile-bottom-nav { display: flex; }

    /* Main content - leave space for bottom nav */
    .main { padding: 14px 14px calc(72px + env(safe-area-inset-bottom) + 8px); }

    /* Stats */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 14px 16px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 8px; }
    .stat-icon svg { width: 15px; height: 15px; }

    /* Filter panel */
    .filter-panel { padding: 14px; gap: 10px; }
    .filter-group { min-width: calc(50% - 8px); flex: none; }
    .filter-panel .btn-primary, .filter-panel .btn-secondary { flex: 1; min-width: 0; }

    /* Table */
    .table-wrapper { -webkit-overflow-scrolling: touch; }
    .table-header { padding: 12px 14px; }
    .table-search input { width: 150px; }

    /* Page header */
    .page-header { flex-direction: column; gap: 12px; margin-bottom: 16px; }
    .page-title h2 { font-size: 19px; }

    /* Firma detay grid → tek kolon */
    .detay-grid { grid-template-columns: 1fr !important; }
    .detay-secim-bar { flex-wrap: wrap; gap: 8px; }
    .detay-secim-bar .autocomplete-wrapper { max-width: 100% !important; }

    /* Teklif grid → tek kolon, sağ panel alta iner */
    .teklif-main-grid { grid-template-columns: 1fr !important; }

    /* Planlama grid → tek kolon */
    .plan-grid { grid-template-columns: 1fr !important; }
    .plan-grid > div { grid-column: 1 !important; grid-row: auto !important; }
    #pPlanHazirlik { min-height: 100px; flex: none !important; }

    /* Prevent iOS input zoom (must be ≥16px) */
    input[type="text"],
    input[type="number"],
    input[type="date"],
    select,
    textarea { font-size: 16px !important; }

    /* Touch-friendly button height */
    .btn-primary, .btn-secondary { min-height: 42px; }

    /* Detay kart başlıklar */
    .detay-firma-name { font-size: 18px !important; }
}

@media (max-width: 480px) {
    .stats-row { gap: 8px; }
    .stat-value { font-size: 20px; }
    .stat-card { padding: 12px 13px; }
    .main { padding: 12px 12px calc(72px + env(safe-area-inset-bottom) + 8px); }
    .filter-group { min-width: 100%; }
    .mbn-tab { font-size: 9px; }
    .mbn-tab svg { width: 20px; height: 20px; }
    .logo span { display: none; } /* çok küçük ekranlarda logo yazısı gizle */
    .logo-icon { width: 30px; height: 30px; font-size: 14px; }
}

/* =========== ONAY MODALI =========== */
#confirmOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
#confirmOverlay.active {
    opacity: 1;
    pointer-events: all;
}
.confirm-box {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px 32px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    transform: translateY(-12px) scale(0.97);
    transition: transform 0.2s ease;
    text-align: center;
}
#confirmOverlay.active .confirm-box {
    transform: translateY(0) scale(1);
}
.confirm-box p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 22px;
}
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.confirm-actions .btn-confirm-ok {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.15s;
}
.confirm-actions .btn-confirm-ok:hover { opacity: 0.85; }
.confirm-actions .btn-confirm-cancel {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}
.confirm-actions .btn-confirm-cancel:hover { background: var(--surface-3); }

/* =========== TOAST BİLDİRİMLERİ =========== */
#toastContainer {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 260px;
    max-width: 420px;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.toast-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.toast-info {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}
