﻿/* =========================================================
   NETBARKOD • LIGHT THEME ENGINE (White base + Accent themes)
========================================================= */

:root {
    --bg: #f6f8fc; /* sayfa zemini */
    --surface: #ffffff; /* kart/alan */
    --surface-2: #f1f5ff; /* ikinci yüzey */
    --text: rgba(15,23,42,.92); /* ana yazı */
    --muted: rgba(15,23,42,.62); /* ikincil yazı */
    --border: rgba(15,23,42,.12);
    --primary: #2563eb; /* tema accent (default blue) */
    --primary-2: #1d4ed8;
    --radius: 18px;
    --radius-sm: 14px;
    /* ✅ kart gölgeleri (ince/kurumsal) */
    --shadow-sm: 0 6px 16px rgba(15,23,42,.06);
    --shadow: 0 16px 40px rgba(15,23,42,.10);
    --font: system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 20% -10%, rgba(37,99,235,.10), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(245,158,11,.10), transparent 55%), var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
}

    a:hover {
        color: var(--primary-2);
    }

.text-muted {
    color: var(--muted) !important;
}

/* ✅ Bootstrap 5 renklerini token’lara bağla */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--border);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-2);
}

/* =========================================================
   SHELL
========================================================= */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: rgba(255,255,255,.80);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* brand */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 16px 10px;
}

    .brand .logo {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--primary), rgba(255,255,255,.85));
        display: grid;
        place-items: center;
        font-weight: 900;
        color: rgba(15,23,42,.9);
        box-shadow: var(--shadow-sm);
    }

    .brand .title .name {
        font-weight: 900;
        letter-spacing: .2px;
    }

    .brand .title .sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: -2px;
    }

/* sidebar links */
.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    border: 1px solid transparent;
}

    .side-link:hover {
        background: rgba(15,23,42,.04);
        border-color: rgba(15,23,42,.06);
    }

    .side-link.active {
        background: rgba(37,99,235,.10);
        border-color: rgba(37,99,235,.18);
    }

    .side-link i {
        opacity: .9;
    }

/* sidebar footer */
.sidebar-footer {
    border-top: 1px solid var(--border);
}

    .sidebar-footer .userbox {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,.70);
    }

    .sidebar-footer .avatar {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        background: rgba(15,23,42,.05);
        border: 1px solid rgba(15,23,42,.08);
        display: grid;
        place-items: center;
    }

    .sidebar-footer .meta .u {
        font-weight: 800;
        font-size: 13px;
    }

    .sidebar-footer .meta .s {
        font-size: 12px;
        color: var(--muted);
    }

/* =========================================================
   TOPBAR / CONTENT / FOOTER
========================================================= */
.app-topbar {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-title {
    font-weight: 900;
    letter-spacing: .2px;
}

.badge-soft {
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(37,99,235,.18);
    color: rgba(15,23,42,.85);
    padding: 8px 10px;
    border-radius: 999px;
}

.app-content {
    padding: 18px;
    min-width: 0;
}

.app-footer-advanced {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(10px);
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.izbel-link {
    font-weight: 800;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.70);
    color: rgba(15,23,42,.85);
}

    .izbel-link:hover {
        background: rgba(255,255,255,.95);
        color: rgba(15,23,42,.95);
    }

.clock {
    font-variant-numeric: tabular-nums;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15,23,42,.03);
    color: rgba(15,23,42,.85);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-ghost {
    background: rgba(15,23,42,.03);
    border: 1px solid rgba(15,23,42,.10);
    color: rgba(15,23,42,.86);
    border-radius: var(--radius-sm);
}

    .btn-ghost:hover {
        background: rgba(15,23,42,.05);
        border-color: rgba(15,23,42,.16);
    }

.btn-soft {
    background: rgba(37,99,235,.08);
    border: 1px solid rgba(37,99,235,.16);
    color: rgba(15,23,42,.90);
    border-radius: var(--radius-sm);
}

    .btn-soft:hover {
        background: rgba(37,99,235,.12);
        border-color: rgba(37,99,235,.22);
    }

/* =========================================================
   ✅ KARTLAR: ince gölge + kurumsal
========================================================= */
.card, .card-soft {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

    .card:hover, .card-soft:hover {
        box-shadow: var(--shadow);
    }

    /* Kart header soft */
    .card .card-header, .card-soft .card-header {
        background: linear-gradient(90deg, rgba(37,99,235,.07), rgba(245,158,11,.05));
        border-bottom: 1px solid rgba(15,23,42,.08);
        border-top-left-radius: var(--radius);
        border-top-right-radius: var(--radius);
        font-weight: 900;
    }

/* =========================================================
   ✅ INPUT: primary focus ring
========================================================= */
.form-control, .form-select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(15,23,42,.14);
    border-radius: var(--radius-sm);
}

    .form-control::placeholder {
        color: rgba(15,23,42,.40);
    }

    .form-control:focus, .form-select:focus {
        border-color: rgba(37,99,235,.45) !important;
        box-shadow: 0 0 0 .25rem rgba(37,99,235,.18) !important; /* ✅ ring */
        outline: none;
    }

/* Checkbox/radio focus */
.form-check-input:focus {
    border-color: rgba(37,99,235,.45) !important;
    box-shadow: 0 0 0 .25rem rgba(37,99,235,.18) !important;
}

/* =========================================================
   ✅ TABLE: header soft background + border
========================================================= */
.table {
    color: var(--text);
}

    .table thead th {
        background: rgba(37,99,235,.08); /* soft header */
        color: rgba(15,23,42,.88);
        border-bottom: 1px solid rgba(15,23,42,.12) !important;
        font-weight: 900;
    }

    .table tbody tr:hover {
        background: rgba(15,23,42,.03);
    }

/* =========================================================
   OFFCANVAS (mobile menü beyaz görünsün)
========================================================= */
.nb-offcanvas {
    background: rgba(255,255,255,.95);
    color: var(--text);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--border);
}

.nb-btn-close {
    filter: none;
    opacity: .8;
}

.logo-sm {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), rgba(255,255,255,.85));
    display: grid;
    place-items: center;
    font-weight: 900;
    color: rgba(15,23,42,.9);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   THEME PANEL
========================================================= */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.theme-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

    .theme-card:hover {
        box-shadow: var(--shadow);
    }

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(37,99,235,.10);
}

.theme-name {
    font-weight: 900;
}

.theme-meta {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991.98px) {
    .app-sidebar {
        display: none;
    }
}

/* =========================================================
   ✅ LIGHT THEMES (white base + accent)
========================================================= */
html[data-theme] {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #f1f5ff;
    --text: rgba(15,23,42,.92);
    --muted: rgba(15,23,42,.62);
    --border: rgba(15,23,42,.12);
}

/* 20+ accent */
html[data-theme="clean"] {
    --bg: #ffffff;
    --surface-2: #f6f7fb;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
}

html[data-theme="blue"] {
    --primary: #2563eb;
    --primary-2: #1d4ed8;
}

html[data-theme="navy"] {
    --primary: #1e3a8a;
    --primary-2: #1d4ed8;
}

html[data-theme="sky"] {
    --primary: #0ea5e9;
    --primary-2: #0284c7;
}

html[data-theme="cyan"] {
    --primary: #06b6d4;
    --primary-2: #0891b2;
}

html[data-theme="teal"] {
    --primary: #14b8a6;
    --primary-2: #0f766e;
}

html[data-theme="mint"] {
    --primary: #2dd4bf;
    --primary-2: #14b8a6;
}

html[data-theme="emerald"] {
    --primary: #10b981;
    --primary-2: #059669;
}

html[data-theme="green"] {
    --primary: #22c55e;
    --primary-2: #16a34a;
}

html[data-theme="amber"] {
    --primary: #f59e0b;
    --primary-2: #d97706;
}

html[data-theme="gold"] {
    --primary: #d4a017;
    --primary-2: #b8860b;
}

html[data-theme="copper"] {
    --primary: #ea580c;
    --primary-2: #c2410c;
}

html[data-theme="bronze"] {
    --primary: #b45309;
    --primary-2: #92400e;
}

html[data-theme="rose"] {
    --primary: #e11d48;
    --primary-2: #be123c;
}

html[data-theme="crimson"] {
    --primary: #dc2626;
    --primary-2: #b91c1c;
}

html[data-theme="pink"] {
    --primary: #db2777;
    --primary-2: #be185d;
}

html[data-theme="purple"] {
    --primary: #7c3aed;
    --primary-2: #6d28d9;
}

html[data-theme="violet"] {
    --primary: #4f46e5;
    --primary-2: #4338ca;
}

html[data-theme="indigo"] {
    --primary: #3730a3;
    --primary-2: #312e81;
}

html[data-theme="slate"] {
    --primary: #334155;
    --primary-2: #1f2937;
}

html[data-theme="graphite"] {
    --primary: #475569;
    --primary-2: #334155;
}

html[data-theme="sandgold"] {
    --bg: #faf7f0;
    --surface-2: #f7f0e3;
    --primary: #b45309;
    --primary-2: #a16207;
}
.sidebar-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
}

.btn-soft {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15,23,42,.12);
}

