/* ═══════════════════════════════════════════════════════════════
   APP - Layout, Sidebar, Header, Kart, Buton, Form
   ═══════════════════════════════════════════════════════════════ */

/* ─── APP WRAPPER ─────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ─── SIDEBAR ─────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--t-slow);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.sidebar-brand .logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    box-shadow: 0 4px 12px rgba(79,70,229,.4);
    flex-shrink: 0;
}

.sidebar-brand small { display: block; font-size: .7rem; opacity: .55; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.sidebar-section { padding: 14px 0; }

.sidebar-section-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748B;
    padding: 0 20px 8px;
    font-weight: 600;
}

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #CBD5E1;
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--t-fast);
    position: relative;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(79,70,229,.18), rgba(79,70,229,.02));
    color: #fff;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-icon {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.sidebar-nav .badge-count {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}

/* ─── MAIN AREA ───────────────────────────── */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left var(--t-slow);
}

/* ─── HEADER ──────────────────────────────── */
.topbar {
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(12px);
    background: color-mix(in srgb, var(--bg-header) 88%, transparent);
}

.topbar-toggle {
    display: none;
    background: none; border: none; color: var(--text);
    font-size: 22px; padding: 6px;
    border-radius: 8px;
    transition: background var(--t-fast);
}
.topbar-toggle:hover { background: var(--bg-hover); }

.topbar-title { font-size: 1rem; font-weight: 600; margin: 0; }

.topbar-search {
    flex: 1;
    max-width: 380px;
    margin-left: auto;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    border-radius: 10px;
    font-size: .875rem;
    color: var(--text);
    transition: all var(--t-fast);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-50);
}

[data-theme="dark"] .topbar-search input:focus { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }

.topbar-search::before {
    content: '🔍';
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: .55;
    pointer-events: none;
}

.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--t-fast);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }

.icon-btn .dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

.icon-btn .count {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* ─── KULLANICI MENÜSÜ ───────────────────── */
.user-menu { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all var(--t-fast);
    cursor: pointer;
}
.user-trigger:hover { background: var(--bg-hover); border-color: var(--border); }

.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .85rem;
    flex-shrink: 0;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-info { text-align: left; line-height: 1.15; }
.user-info strong { font-size: .85rem; font-weight: 600; display: block; color: var(--text); }
.user-info small  { font-size: .7rem; color: var(--text-muted); }

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-fast);
    z-index: 100;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a, .dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    text-align: left;
    transition: all var(--t-fast);
    cursor: pointer;
    text-decoration: none;
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg-hover); color: var(--text); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown .text-danger { color: var(--danger); }
.dropdown .text-danger:hover { background: var(--danger-50); color: var(--danger); }

/* ─── İÇERİK ─────────────────────────────── */
.content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: 2px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span::after { content: '/'; margin-left: 8px; opacity: .5; }
.breadcrumb span:last-child::after { content: ''; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ─── KARTLAR ────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--t);
    box-shadow: var(--shadow-sm);
}

.card.hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

[data-theme="dark"] .card.hover:hover { border-color: rgba(79,70,229,.35); }

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

.card-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }

.card-title { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }

/* ─── GRID ───────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── STAT KARTI ─────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--t);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7C3AED);
    opacity: 0;
    transition: opacity var(--t);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: var(--primary-50);
    color: var(--primary);
}
.stat-icon.success { background: var(--success-50); color: var(--success); }
.stat-icon.warning { background: var(--warning-50); color: var(--warning); }
.stat-icon.danger  { background: var(--danger-50);  color: var(--danger); }
.stat-icon.info    { background: var(--info-50);    color: var(--info); }

[data-theme="dark"] .stat-icon         { background: rgba(79,70,229,.15); }
[data-theme="dark"] .stat-icon.success { background: rgba(16,185,129,.15); }
[data-theme="dark"] .stat-icon.warning { background: rgba(245,158,11,.15); }
[data-theme="dark"] .stat-icon.danger  { background: rgba(239,68,68,.15); }
[data-theme="dark"] .stat-icon.info    { background: rgba(59,130,246,.15); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--text);
}

.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 6px;
}
.stat-change.up   { color: var(--success); background: var(--success-50); }
.stat-change.down { color: var(--danger);  background: var(--danger-50); }

/* ─── BUTONLAR ───────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: 0 2px 6px rgba(79,70,229,.35);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(79,70,229,.5); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #D97706; color: #fff; }

.btn-light {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}
.btn-light:hover { background: var(--bg-hover); border-color: var(--border-dark); color: var(--text); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 13px 26px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

/* ─── BADGE ──────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1.4;
}

.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-success { background: var(--success-50); color: #047857; }
.badge-warning { background: var(--warning-50); color: #B45309; }
.badge-danger  { background: var(--danger-50);  color: #B91C1C; }
.badge-info    { background: var(--info-50);    color: #1D4ED8; }
.badge-gray    { background: var(--gray-100);   color: var(--gray-700); }

[data-theme="dark"] .badge-primary { background: rgba(79,70,229,.2);  color: #A5B4FC; }
[data-theme="dark"] .badge-success { background: rgba(16,185,129,.18); color: #6EE7B7; }
[data-theme="dark"] .badge-warning { background: rgba(245,158,11,.18); color: #FCD34D; }
[data-theme="dark"] .badge-danger  { background: rgba(239,68,68,.18);  color: #FCA5A5; }
[data-theme="dark"] .badge-info    { background: rgba(59,130,246,.18); color: #93C5FD; }
[data-theme="dark"] .badge-gray    { background: var(--gray-700);       color: var(--gray-200); }

/* ─── FORM ───────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: .9rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    font-family: inherit;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(79,70,229,.3);
}

.form-control:disabled,
.form-select:disabled { background: var(--gray-100); cursor: not-allowed; opacity: .7; }

.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--danger); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }

.form-error {
    font-size: .78rem;
    color: var(--danger);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Checkbox / radio */
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: .875rem; }
.form-check input[type=checkbox],
.form-check input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* Dosya yükleme kutusu */
.file-drop {
    display: block;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--t-fast);
    background: var(--bg-body);
}
.file-drop:hover,
.file-drop.dragover {
    border-color: var(--primary);
    background: var(--primary-50);
}
[data-theme="dark"] .file-drop:hover,
[data-theme="dark"] .file-drop.dragover { background: rgba(79,70,229,.1); }

.file-drop input[type=file] { display: none; }
.file-drop-icon { font-size: 32px; margin-bottom: 6px; opacity: .7; }
.file-drop-text { font-size: .85rem; color: var(--text-secondary); }
.file-drop-text strong { color: var(--primary); }

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-body);
    border-radius: 8px;
    margin-top: 10px;
    font-size: .85rem;
}
.file-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.file-preview .file-info { flex: 1; min-width: 0; }
.file-preview .file-info strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview .file-info small { color: var(--text-muted); }
.file-preview .remove-file {
    background: none; border: none; color: var(--danger);
    font-size: 18px; cursor: pointer; padding: 4px; border-radius: 6px;
}
.file-preview .remove-file:hover { background: var(--danger-50); }

/* ─── TABLO ──────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
table.data-table thead th {
    background: var(--gray-50);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] table.data-table thead th { background: var(--gray-800); }

table.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--bg-hover); }

/* ─── ALERT ──────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
    animation: fadeIn .3s ease;
}
.alert-success { background: var(--success-50); border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: var(--danger-50);  border-color: #FECACA; color: #991B1B; }
.alert-warning { background: var(--warning-50); border-color: #FDE68A; color: #92400E; }
.alert-info    { background: var(--info-50);    border-color: #BFDBFE; color: #1E40AF; }

[data-theme="dark"] .alert-success { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4); color: #6EE7B7; }
[data-theme="dark"] .alert-danger  { background: rgba(239,68,68,.15);  border-color: rgba(239,68,68,.4);  color: #FCA5A5; }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.4); color: #FCD34D; }
[data-theme="dark"] .alert-info    { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.4); color: #93C5FD; }

.alert .alert-close {
    margin-left: auto;
    background: none; border: none;
    font-size: 18px; cursor: pointer;
    color: inherit; opacity: .6;
    padding: 0; line-height: 1;
}
.alert .alert-close:hover { opacity: 1; }

/* ─── MODAL ──────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn .2s ease;
}
.modal-backdrop.open { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn .25s cubic-bezier(.4,0,.2,1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-header .close-btn {
    background: none; border: none;
    font-size: 22px; line-height: 1;
    color: var(--text-muted); cursor: pointer;
    padding: 4px; border-radius: 8px;
}
.modal-header .close-btn:hover { background: var(--bg-hover); color: var(--text); }

.modal-body { padding: 22px 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
[data-theme="dark"] .modal-footer { background: var(--gray-800); }

@keyframes modalIn {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1);     opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── MOBİL ──────────────────────────────── */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    .sidebar.open { transform: translateX(0); }

    .main-area { margin-left: 0; }
    .topbar-toggle { display: inline-flex; }
    .topbar { padding: 0 16px; }
    .content { padding: 16px; }
    .user-info { display: none; }
    .topbar-search { max-width: 200px; }
}

@media (max-width: 480px) {
    .topbar-search { display: none; }
    .page-header h1 { font-size: 1.25rem; }
}

/* ─── SIDEBAR BACKDROP (mobil) ───────────── */
.sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t);
}
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════════════════
   CHART CONTAINER — Sabit yükseklik (Chart.js için)
   ═══════════════════════════════════════════════════════════════ */

.chart-container {
    position: relative;
    width: 100%;
    height: 260px;       /* Sabit yükseklik */
    min-height: 260px;
    max-height: 260px;
}

.chart-container-sm {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
}

.chart-container-lg {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
}

.chart-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Mobil */
@media (max-width: 768px) {
    .chart-container,
    .chart-container-sm,
    .chart-container-lg {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
}