body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
}

.bg-slate-50 { background-color: #f8fafc; }
.bg-white { background-color: #ffffff; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.text-slate-50 { color: #f9fafb; }
.text-slate-300 { color: #cbd5f5; }
.text-slate-100 { color: #e5e7eb; }
.text-slate-900 { color: #0f172a; }
.text-slate-700 { color: #334155; }
.text-slate-500 { color: #64748b; }
.text-sky-700 { color: #0369a1; }
.text-sky-400 { color: #38bdf8; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border { border: 1px solid #e2e8f0; }
.rounded { border-radius: 0.5rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mt-12 { margin-top: 3rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.space-x-4 > :not(:last-child) { margin-right: 1rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.ml-5 { margin-left: 1.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.hover\:text-sky-700:hover { color: #0369a1; }

/* Eksik “Tailwind-benzeri” yardımcılar — admin layout / dashboard için */
.p-6 { padding: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.text-slate-400 { color: #94a3b8; }
.text-slate-800 { color: #1e293b; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.admin-settings-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Admin panel */
.min-h-screen { min-height: 100vh; }
.w-60 { width: 15rem; }
.w-64 { width: 16rem; }
.flex-1 { flex: 1; }
.border-r { border-right: 1px solid #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-auto { width: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.text-red-700 { color: #b91c1c; }
.text-green-700 { color: #15803d; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-red-50 { background-color: #fef2f2; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.max-w-md { max-width: 28rem; }
.w-full { width: 100%; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; overflow: hidden; }
.admin-table th, .admin-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.admin-table th { background: #f1f5f9; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; color: #475569; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #f8fafc; }

.btn-primary { display: inline-block; padding: 0.5rem 1rem; background: #0369a1; color: #fff; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; }
.btn-primary:hover { background: #0284c7; }
.btn-secondary { display: inline-block; padding: 0.5rem 1rem; background: #e2e8f0; color: #334155; border-radius: 0.375rem; font-size: 0.875rem; text-decoration: none; margin-left: 0.5rem; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #dc2626;
    cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-danger-sm { padding: 0.28rem 0.58rem; font-size: 0.76rem; border-radius: 0.42rem; }

.form-card { max-width: 36rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem; }
.form-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 0.875rem; }
.form-input:focus { outline: none; border-color: #0369a1; box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.2); }
.form-input-sm { padding: 0.35rem 0.5rem; font-size: 0.8125rem; }
.form-actions { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.link { color: #0369a1; text-decoration: none; font-size: 0.875rem; margin-right: 0.75rem; }
.link:hover { text-decoration: underline; }
form.inline { display: inline; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; cursor: pointer; }

.filters-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.filter-item { display: flex; flex-direction: column; }
.filter-item .form-label { margin-bottom: 0.2rem; }
.filter-actions { justify-content: flex-end; }
.pagination { font-size: 0.875rem; }

.grid { display: grid; }

/* Extra utilities for modern admin/login layouts */
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-xl { box-shadow: 0 20px 45px rgba(15,23,42,0.45); }
.bg-white\/95 { background-color: rgba(255,255,255,0.95); }
.bg-slate-900\/80 { background-color: rgba(15,23,42,0.8); }
.backdrop-blur-sm { backdrop-filter: blur(8px); }

/* Simple spacing / layout helpers used in admin templates */
.block { display: block; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.space-y-1 > :not(:last-child) { margin-bottom: 0.25rem; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }

/* Sidebar links */
aside nav a {
    text-decoration: none;
}

/* ── Admin gösterge paneli (dashboard) ── */
.admin-dashboard {
    max-width: 1400px;
}

.admin-dash-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #f0f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-dash-hero-text h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.admin-dash-hero-text p {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.admin-dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.admin-dash-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.admin-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-dash-kpi-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.admin-dash-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--dash-accent, #0ea5e9);
}

.admin-dash-kpi-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    border-color: #dbeafe;
}

.admin-dash-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.admin-dash-kpi-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-dash-kpi-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--dash-icon-bg, #e0f2fe);
}

.admin-dash-kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.admin-dash-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.admin-dash-metric {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-dash-metric-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
}

.admin-dash-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.admin-dash-metric-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    line-height: 1.35;
}

/* Mini trend: yüzde yükseklik yerine px — tek mavi blok bug’ını önler */
.admin-dash-sparkline {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    gap: 4px;
    height: 40px;
    margin: 0.35rem 0 0.15rem;
    padding-bottom: 2px;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.admin-dash-sparkline-bar {
    flex: 1;
    min-width: 0;
    border-radius: 4px 4px 0 0;
    align-self: flex-end;
}

.admin-dash-section-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.65rem;
    font-weight: 500;
}

.admin-dash-attribution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.admin-dash-panel {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.admin-dash-panel-head {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.admin-dash-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.admin-dash-panel-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    white-space: nowrap;
}

.admin-dash-panel-link:hover {
    text-decoration: underline;
}

.admin-dash-panel-body {
    padding: 0.85rem 1.15rem 1.1rem;
}

.admin-dash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.8rem;
}

.admin-dash-row:last-child {
    border-bottom: 0;
}

.admin-dash-two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: start;
}

.admin-dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-dash-table-wrap {
    overflow-x: auto;
}

.admin-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.admin-dash-table thead tr {
    background: #f8fafc;
}

.admin-dash-table th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.admin-dash-table td {
    padding: 0.65rem 1rem;
    border-top: 1px solid #f1f5f9;
    vertical-align: top;
}

.admin-dash-table tbody tr {
    transition: background 0.12s ease;
}

.admin-dash-table tbody tr:hover {
    background: #fafbfc;
}

.admin-dash-progress-wrap {
    margin-bottom: 0.55rem;
}

.admin-dash-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
}

.admin-dash-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.admin-dash-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.35s ease;
}

.admin-dash-quick {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    padding: 1.05rem 1.2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.admin-dash-quick-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.9rem;
    letter-spacing: -0.01em;
}

.admin-dash-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-dash-quick-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.admin-dash-quick-link:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

@media (max-width: 1200px) {
    .admin-dash-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .admin-dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dash-attribution-grid {
        grid-template-columns: 1fr;
    }
    .admin-dash-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-dash-kpi-grid {
        grid-template-columns: 1fr;
    }
    .admin-dash-metrics-grid {
        grid-template-columns: 1fr;
    }
    .admin-dash-hero {
        padding: 1rem;
    }
}

/* Public site CSS artık /public/assets/css/public.css dosyasında. */

/* ===== Modern admin polish ===== */
.admin-panel {
    background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 32%, #f8fafc 100%);
}

.admin-panel > .flex > aside {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-right: 1px solid #e2e8f0;
}

.admin-panel aside nav a {
    border: 1px solid transparent;
    transition: all 0.16s ease;
}

.admin-panel aside nav a:hover {
    transform: translateX(1px);
    border-color: #e2e8f0;
}

.admin-panel main > header {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

.admin-panel main > section {
    max-width: 1440px;
}

.admin-panel .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.24);
}

.admin-panel .btn-secondary {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    margin-left: 0;
    font-weight: 600;
}

.admin-panel .form-input {
    border-radius: 10px;
    border-color: #cbd5e1;
    background: #fff;
}

.admin-panel .form-input:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.admin-panel .bg-white.rounded.border {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

/* ===== Admin mobile layout ===== */
.admin-mobile-topbar {
    display: none;
}

.admin-drawer-backdrop {
    display: none;
}

.admin-mobile-menu-btn,
.admin-mobile-close-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.admin-mobile-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
}

.admin-mobile-logout {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0369a1;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
}

.admin-mobile-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 960px) {
    .admin-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid #e2e8f0;
    }

    .admin-layout-wrap {
        min-height: calc(100vh - 56px);
    }

    .admin-layout-wrap > main > header {
        display: none;
    }

    .admin-panel main > section {
        padding: 0.85rem !important;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 80;
        width: min(84vw, 320px);
        transform: translateX(-102%);
        transition: transform 0.2s ease;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    }

    .admin-mobile-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-panel.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 75;
        background: rgba(2, 6, 23, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .admin-panel.admin-menu-open .admin-drawer-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .admin-panel aside nav {
        overflow-y: auto;
    }

    .admin-panel .admin-table,
    .admin-panel .admin-dash-table {
        min-width: 680px;
    }

    .admin-panel .form-row {
        flex-direction: column;
    }
}

