/* Koyu, göz yormayan tema: soğuk gri-mavi zemin, tek vurgu rengi (süzülmüş camgöbeği) */
[data-bs-theme="dark"] {
    --bs-body-bg: #12161b;
    --bs-body-color: #d3d9df;
    --bs-emphasis-color: #eef1f4;
    --bs-secondary-color: #98a3af;
    --bs-tertiary-bg: #1a2027;
    --bs-border-color: #28313a;
    --bs-link-color: #7cc4cb;
    --bs-link-hover-color: #a1d8dd;
    --bs-link-color-rgb: 124, 196, 203;
    --bs-link-hover-color-rgb: 161, 216, 221;
    --app-surface: #1a2027;
    --app-sidebar: #0e1217;
    --app-accent: #5fb3bb;
}

body {
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2f7a81;
    --bs-btn-border-color: #2f7a81;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #38878f;
    --bs-btn-hover-border-color: #38878f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #286970;
    --bs-btn-active-border-color: #286970;
    --bs-btn-focus-shadow-rgb: 95, 179, 187;
}

.form-control, .form-select { background-color: #0f1318; }
.form-control:focus, .form-select:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 0.2rem rgba(95, 179, 187, 0.25);
}

/* Yerleşim */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; padding: 1.25rem 1rem 3rem; max-width: 72rem; }
@media (min-width: 992px) { .app-main { padding: 2rem 2.5rem 3rem; } }

.app-topbar {
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--app-sidebar);
    border-bottom: 1px solid var(--bs-border-color);
}

.app-sidebar { --bs-offcanvas-bg: var(--app-sidebar); --bs-offcanvas-width: 16rem; }
.sidebar-panel {
    display: flex; flex-direction: column; height: 100%;
    background: var(--app-sidebar);
    border-right: 1px solid var(--bs-border-color);
}
@media (min-width: 992px) {
    .app-sidebar { position: sticky; top: 0; height: 100vh; flex: 0 0 15rem; }
}
.sidebar-brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    font-size: 1.05rem;
}
.sidebar-nav { padding: 0.5rem 0.75rem; gap: 0.15rem; }
.sidebar-nav .nav-link {
    color: var(--bs-secondary-color);
    padding: 0.55rem 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link i { margin-right: 0.5rem; }
.sidebar-nav .nav-link:hover { color: var(--bs-emphasis-color); background: rgba(255, 255, 255, 0.04); }
.sidebar-nav .nav-link.active {
    color: var(--bs-emphasis-color);
    background: rgba(95, 179, 187, 0.12);
    border-left-color: var(--app-accent);
}
.sidebar-user { margin-top: auto; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--bs-border-color); }

/* İçerik */
h1.page-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
.panel-box {
    background: var(--app-surface);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
}
.stat-value { font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--bs-emphasis-color); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--bs-border-color); }
.table > :not(caption) > * > * { padding: 0.6rem 0.75rem; }
.table thead th { color: var(--bs-secondary-color); font-weight: 500; border-bottom-width: 1px; }
.table-hours-input { max-width: 9rem; margin-left: auto; text-align: right; }

/* Giriş sayfası */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-box { width: 100%; max-width: 24rem; padding: 1.75rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
