/* ============================================================
   ROBERTI ERP PROFESSIONAL V11
   Ana Arayüz Stil Dosyası
   ============================================================ */


/* ============================================================
   1. TEMA DEĞİŞKENLERİ
   ============================================================ */

:root {
    --primary: #198754;
    --primary-dark: #12663f;
    --primary-light: #dff3e8;
    --primary-hover: #157347;

    --secondary: #f0c236;
    --secondary-dark: #c89d12;
    --secondary-light: #fff6d5;

    --success: #198754;
    --danger: #dc3545;
    --warning: #f59e0b;
    --info: #0dcaf0;
    --purple: #7c3aed;
    --orange: #f97316;
    --blue: #2563eb;

    --body-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f1f5f9;

    --text-primary: #172033;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #edf2f7;

    --sidebar-bg: #10291d;
    --sidebar-bg-secondary: #143524;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(240, 194, 54, 0.16);
    --sidebar-text: #dbe8df;
    --sidebar-muted: #8eaa97;

    --topbar-height: 74px;
    --sidebar-width: 286px;
    --sidebar-collapsed-width: 86px;
    --footer-height: 52px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    --font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* ============================================================
   2. DARK MODE DEĞİŞKENLERİ
   ============================================================ */

html[data-theme="dark"] {
    --body-bg: #0c1420;
    --surface: #131e2d;
    --surface-soft: #172435;
    --surface-hover: #1d2b3e;

    --text-primary: #edf2f7;
    --text-secondary: #a8b5c7;
    --text-muted: #718096;

    --border-color: #26364a;
    --border-light: #202f41;

    --sidebar-bg: #08140e;
    --sidebar-bg-secondary: #0d2116;
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active: rgba(240, 194, 54, 0.14);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.38);
}


/* ============================================================
   3. GLOBAL RESET
   ============================================================ */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--body-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

hr {
    border-color: var(--border-color);
    opacity: 1;
}


/* ============================================================
   4. SCROLLBAR
   ============================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: #9eb3a7 transparent;
}

*::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #9eb3a7;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #6f8f7b;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background: #385244;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: #496c58;
}


/* ============================================================
   5. SEÇİM RENGİ
   ============================================================ */

::selection {
    background: rgba(25, 135, 84, 0.22);
    color: var(--text-primary);
}


/* ============================================================
   6. SAYFA YÜKLEYİCİ
   ============================================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--body-bg);
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.page-loader-logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    box-shadow:
        0 15px 35px rgba(25, 135, 84, 0.28);
    animation: loaderPulse 1.4s ease-in-out infinite;
}

.page-loader-text {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.page-loader-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

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

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}


/* ============================================================
   7. ANA UYGULAMA YAPISI
   ============================================================ */

.app-shell {
    min-height: 100vh;
}

.app-main {
    min-height: calc(100vh - var(--topbar-height));
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    transition: margin-left var(--transition-normal);
}

.app-content {
    min-height:
        calc(
            100vh -
            var(--topbar-height) -
            var(--footer-height)
        );
    padding: 24px;
}

body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-collapsed-width);
}

.content-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}


/* ============================================================
   8. TOPBAR
   ============================================================ */

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 1040;
    height: var(--topbar-height);
    display: grid;
    grid-template-columns: minmax(260px, auto) 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        left var(--transition-normal),
        background-color var(--transition-normal);
}

html[data-theme="dark"] .topbar {
    background: rgba(19, 30, 45, 0.94);
}

body.sidebar-collapsed .topbar {
    left: var(--sidebar-collapsed-width);
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 14px;
}

.topbar-center {
    justify-content: center;
    min-width: 0;
}

.topbar-right {
    justify-content: flex-end;
    gap: 8px;
}


/* ============================================================
   9. MARKA ALANI
   ============================================================ */

.brand-area {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            var(--primary),
            var(--primary-dark)
        );
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    box-shadow:
        0 8px 20px rgba(25, 135, 84, 0.2);
}

.brand-text {
    min-width: 0;
}

.brand-title {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ============================================================
   10. GENEL İKON BUTONU
   ============================================================ */

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 19px;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.icon-button:hover {
    background: var(--surface-hover);
    border-color: var(--border-color);
    color: var(--primary);
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.18);
    outline-offset: 2px;
}

.menu-toggle {
    display: none;
}


/* ============================================================
   11. GLOBAL ARAMA BUTONU
   ============================================================ */

.global-search-trigger {
    width: min(100%, 620px);
    height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text-muted);
    box-shadow: var(--shadow-xs);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.global-search-trigger:hover {
    border-color: rgba(25, 135, 84, 0.45);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.global-search-trigger i {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 16px;
}

.global-search-trigger span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-trigger kbd {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    box-shadow: none;
}


/* ============================================================
   12. HIZLI İŞLEM BUTONU
   ============================================================ */

.topbar-quick-action {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow:
        0 8px 20px rgba(25, 135, 84, 0.2);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.topbar-quick-action:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 11px 26px rgba(25, 135, 84, 0.28);
}

.topbar-quick-action:active {
    transform: translateY(0);
}

.topbar-quick-action i {
    font-size: 15px;
}


/* ============================================================
   13. BİLDİRİM BUTONU
   ============================================================ */

.notification-button {
    overflow: visible;
}

.notification-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--danger);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.13);
    }
}


/* ============================================================
   14. TOPBAR KULLANICI MENÜSÜ
   ============================================================ */

.topbar-user {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 5px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--text-primary);
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.topbar-user:hover,
.topbar-user[aria-expanded="true"] {
    background: var(--surface-hover);
    border-color: var(--border-color);
}

.topbar-user::after {
    display: none;
}

.topbar-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background:
        linear-gradient(
            145deg,
            var(--secondary),
            var(--secondary-dark)
        );
    color: #3c3108;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
}

.topbar-user-text {
    min-width: 0;
    max-width: 130px;
    text-align: left;
}

.topbar-user-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-role {
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    color: var(--text-muted);
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.topbar-user[aria-expanded="true"] .user-chevron {
    transform: rotate(180deg);
}


/* ============================================================
   15. KULLANICI DROPDOWN MENÜSÜ
   ============================================================ */

.user-dropdown {
    width: 285px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.user-dropdown .dropdown-header {
    padding: 9px;
}

.user-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            var(--secondary),
            var(--secondary-dark)
        );
    color: #3c3108;
    font-size: 16px;
    font-weight: 850;
    text-transform: uppercase;
}

.user-dropdown-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 750;
}

.user-dropdown-role {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}

.user-dropdown .dropdown-divider {
    margin: 6px 4px;
}

.user-dropdown .dropdown-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 550;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.user-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-item:focus {
    background: var(--surface-hover);
    color: var(--primary);
}

.user-dropdown .dropdown-item i {
    width: 18px;
    flex: 0 0 auto;
    font-size: 15px;
    text-align: center;
}

.user-dropdown .dropdown-item.text-danger {
    color: var(--danger) !important;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.09);
    color: var(--danger) !important;
}

.dropdown-count {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.11);
    color: var(--danger);
    font-size: 10px;
    font-weight: 800;
}

.dropdown-system-info {
    padding: 7px 10px;
}

.dropdown-system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--text-muted);
    font-size: 10px;
}

.dropdown-system-row strong {
    color: var(--text-secondary);
    font-weight: 650;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}


/* ============================================================
   16. FLASH MESAJLARI
   ============================================================ */

.flash-container {
    position: fixed;
    top: calc(var(--topbar-height) + 15px);
    right: 20px;
    z-index: 1080;
    width: min(390px, calc(100vw - 30px));
}

.flash-container .alert {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.flash-container .alert-success {
    border-left: 4px solid var(--success);
}

.flash-container .alert-danger {
    border-left: 4px solid var(--danger);
}

.flash-container .alert-warning {
    border-left: 4px solid var(--warning);
}

.flash-container .alert-info {
    border-left: 4px solid var(--info);
}

.flash-container .btn-close {
    margin-left: auto;
    filter: none;
}

html[data-theme="dark"] .flash-container .btn-close {
    filter: invert(1);
}


/* ============================================================
   17. SIDEBAR MOBİL ARKA PLAN
   ============================================================ */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1044;
    display: none;
    background: rgba(4, 15, 10, 0.58);
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.show {
    opacity: 1;
}


/* ============================================================
   18. RESPONSIVE — TOPBAR
   ============================================================ */

@media (max-width: 1199.98px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        padding: 0 18px;
    }

    .topbar-user-text {
        display: none;
    }

    .user-chevron {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .topbar {
        left: 0;
        grid-template-columns: auto 1fr auto;
    }

    body.sidebar-collapsed .topbar {
        left: 0;
    }

    .app-main,
    body.sidebar-collapsed .app-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .brand-text {
        display: none;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.show {
        pointer-events: auto;
    }

    .app-content {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --topbar-height: 66px;
        --footer-height: auto;
    }

    .topbar {
        gap: 8px;
        padding: 0 12px;
    }

    .topbar-center {
        display: none;
    }

    .topbar {
        grid-template-columns: 1fr auto;
    }

    .topbar-left {
        min-width: 0;
    }

    .topbar-right {
        gap: 3px;
    }

    .brand-area {
        min-width: 0;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .icon-button {
        width: 37px;
        height: 37px;
        font-size: 17px;
    }

    .topbar-user {
        height: 40px;
        padding: 2px;
    }

    .topbar-user-avatar {
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    .notification-count {
        top: -1px;
        right: -2px;
    }

    .app-content {
        padding: 15px;
    }

    .flash-container {
        top: calc(var(--topbar-height) + 10px);
        right: 10px;
        width: calc(100vw - 20px);
    }
}

@media (max-width: 420px) {
    .topbar-right .icon-button:nth-of-type(2) {
        display: none !important;
    }

    .user-dropdown {
        width: min(285px, calc(100vw - 20px));
    }
}


/* ============================================================
   19. YARDIMCI SINIFLAR
   ============================================================ */

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

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

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

.bg-surface {
    background: var(--surface) !important;
}

.border-custom {
    border-color: var(--border-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-sm) !important;
}

.transition-normal {
    transition: all var(--transition-normal);
}

.cursor-pointer {
    cursor: pointer;
}

.min-width-0 {
    min-width: 0;
}
/* ============================================================
   20. SIDEBAR ANA YAPI
   ============================================================ */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: var(--sidebar-width);
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            var(--sidebar-bg) 0%,
            var(--sidebar-bg-secondary) 100%
        );
    color: var(--sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow:
        8px 0 30px rgba(4, 15, 10, 0.12);
    transition:
        width var(--transition-normal),
        transform var(--transition-normal);
}

.sidebar::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle at top left,
            rgba(240, 194, 54, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(25, 135, 84, 0.14),
            transparent 35%
        );
}

.sidebar-scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding:
        20px 14px
        24px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   21. SIDEBAR KULLANICI KARTI
   ============================================================ */

.sidebar-user-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    margin-bottom: 18px;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-user-card::after {
    position: absolute;
    top: -24px;
    right: -20px;
    width: 70px;
    height: 70px;
    content: "";
    border-radius: 50%;
    background: rgba(240, 194, 54, 0.08);
    filter: blur(2px);
}

.sidebar-user-avatar {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            var(--secondary),
            var(--secondary-dark)
        );
    color: #3a2e04;
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar-user-info {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    margin-top: 4px;
    overflow: hidden;
    color: var(--sidebar-muted);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-status {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.sidebar-user-status .status-dot {
    margin: 0;
    box-shadow:
        0 0 0 4px rgba(25, 135, 84, 0.18);
}


/* ============================================================
   22. SIDEBAR BÖLÜM BAŞLIKLARI
   ============================================================ */

.sidebar-section-title {
    display: flex;
    align-items: center;
    min-height: 26px;
    margin: 18px 9px 7px;
    color: var(--sidebar-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-section-title::after {
    flex: 1;
    height: 1px;
    margin-left: 10px;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08),
            transparent
        );
}


/* ============================================================
   23. SIDEBAR NAVİGASYON
   ============================================================ */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 7px;
}

.sidebar-nav + .sidebar-nav {
    margin-top: 5px;
}

.nav-item {
    position: relative;
}

.sidebar-link {
    position: relative;
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    overflow: hidden;
    border-radius: 11px;
    background: transparent;
    color: var(--sidebar-text);
    font-size: 12px;
    font-weight: 550;
    text-align: left;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.sidebar-link::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    content: "";
    border-radius: 0 4px 4px 0;
    background: transparent;
    transition:
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-link.active {
    background:
        linear-gradient(
            90deg,
            var(--sidebar-active),
            rgba(240, 194, 54, 0.05)
        );
    color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(240, 194, 54, 0.08);
}

.sidebar-link.active::before {
    background: var(--secondary);
    box-shadow:
        0 0 12px rgba(240, 194, 54, 0.45);
}

.sidebar-link:focus-visible {
    outline: 2px solid rgba(240, 194, 54, 0.45);
    outline-offset: 2px;
}


/* ============================================================
   24. SIDEBAR İKONLARI
   ============================================================ */

.sidebar-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--sidebar-muted);
    font-size: 15px;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.sidebar-link:hover .sidebar-icon {
    color: var(--secondary);
    transform: scale(1.04);
}

.sidebar-link.active .sidebar-icon {
    background: rgba(240, 194, 54, 0.12);
    color: var(--secondary);
}


/* ============================================================
   25. SIDEBAR YAZILARI VE OKLAR
   ============================================================ */

.sidebar-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link-arrow {
    flex: 0 0 auto;
    color: var(--sidebar-muted);
    font-size: 10px;
    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.sidebar-link:hover .sidebar-link-arrow {
    color: var(--secondary);
    transform: translateX(2px);
}


/* ============================================================
   26. ALT MENÜLER
   ============================================================ */

.sidebar-sub-item {
    position: relative;
}

.sidebar-sub-link {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 28px;
    color: var(--sidebar-muted);
    font-size: 11px;
}

.sidebar-sub-link::before {
    left: 17px;
}

.sidebar-sub-link .sidebar-icon {
    width: 20px;
    height: 20px;
    font-size: 13px;
}

.sidebar-sub-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 17px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-sub-item:last-child .sidebar-sub-line {
    bottom: 50%;
}

.sidebar-sub-line::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-sub-link.active {
    background: rgba(240, 194, 54, 0.09);
    color: #ffffff;
}

.sidebar-sub-link.active .sidebar-sub-line,
.sidebar-sub-link.active .sidebar-sub-line::after {
    background: rgba(240, 194, 54, 0.55);
}


/* ============================================================
   27. SIDEBAR BADGE TASARIMLARI
   ============================================================ */

.sidebar-link-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #d8e5dc;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.sidebar-link-badge.badge-green {
    border-color: rgba(25, 135, 84, 0.3);
    background: rgba(25, 135, 84, 0.18);
    color: #7de2ad;
}

.sidebar-link-badge.badge-yellow {
    border-color: rgba(240, 194, 54, 0.28);
    background: rgba(240, 194, 54, 0.14);
    color: #f5d767;
}

.sidebar-link-badge.badge-blue {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.18);
    color: #8bb2ff;
}

.sidebar-link-badge.badge-orange {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.17);
    color: #ffad73;
}

.sidebar-link-badge.badge-purple {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.18);
    color: #bba0ff;
}


/* ============================================================
   28. SAYISAL BADGE
   ============================================================ */

.sidebar-count-badge {
    min-width: 21px;
    height: 21px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.sidebar-count-badge.danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff9ca6;
    box-shadow:
        inset 0 0 0 1px rgba(220, 53, 69, 0.18);
}


/* ============================================================
   29. GÜVENLİ ÇIKIŞ BUTONU
   ============================================================ */

.sidebar-logout {
    color: #ff9da7;
}

.sidebar-logout:hover {
    background: rgba(220, 53, 69, 0.12);
    color: #ffffff;
}

.sidebar-logout:hover .sidebar-icon {
    color: #ff7a87;
}


/* ============================================================
   30. SİSTEM DURUM KARTI
   ============================================================ */

.sidebar-system-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 135, 84, 0.17),
            rgba(255, 255, 255, 0.03)
        );
}

.sidebar-system-card::after {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 70px;
    height: 70px;
    content: "";
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.18);
    filter: blur(5px);
}

.sidebar-system-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(25, 135, 84, 0.2);
    color: #72dfa4;
    font-size: 16px;
}

.sidebar-system-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.sidebar-system-label {
    color: var(--sidebar-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.sidebar-system-value {
    display: flex;
    align-items: center;
    margin-top: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-system-value .status-dot {
    width: 6px;
    height: 6px;
    margin-right: 7px;
}

.sidebar-system-version {
    margin-top: 5px;
    overflow: hidden;
    color: var(--sidebar-muted);
    font-size: 8px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   31. SIDEBAR ALT BİLGİ
   ============================================================ */

.sidebar-footer-info {
    margin-top: 17px;
    padding: 0 9px 6px;
    color: var(--sidebar-muted);
    font-size: 8px;
    line-height: 1.6;
    text-align: center;
}

.sidebar-footer-info > div:first-child {
    color: #d4e1d8;
    font-size: 9px;
    font-weight: 700;
}

.sidebar-footer-version {
    margin-top: 4px;
    color: rgba(240, 194, 54, 0.8);
    font-weight: 750;
    letter-spacing: 0.4px;
}


/* ============================================================
   32. DARALTILMIŞ SIDEBAR
   ============================================================ */

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-scroll {
    padding-right: 12px;
    padding-left: 12px;
}

body.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    min-height: 60px;
    padding: 8px;
}

body.sidebar-collapsed .sidebar-user-avatar {
    width: 40px;
    height: 40px;
}

body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .sidebar-user-status,
body.sidebar-collapsed .sidebar-section-title span,
body.sidebar-collapsed .sidebar-section-title::after,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .sidebar-link-badge,
body.sidebar-collapsed .sidebar-count-badge,
body.sidebar-collapsed .sidebar-link-arrow,
body.sidebar-collapsed .sidebar-sub-line,
body.sidebar-collapsed .sidebar-system-content,
body.sidebar-collapsed .sidebar-footer-info {
    display: none;
}

body.sidebar-collapsed .sidebar-section-title {
    justify-content: center;
    height: 8px;
    min-height: 8px;
    margin: 13px 0 8px;
}

body.sidebar-collapsed .sidebar-section-title::before {
    width: 24px;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.12);
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    min-height: 44px;
    padding: 8px;
}

body.sidebar-collapsed .sidebar-link:hover {
    transform: none;
}

body.sidebar-collapsed .sidebar-link::before {
    top: 10px;
    bottom: 10px;
}

body.sidebar-collapsed .sidebar-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

body.sidebar-collapsed .sidebar-sub-link {
    padding: 7px;
}

body.sidebar-collapsed .sidebar-sub-link .sidebar-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
}

body.sidebar-collapsed .sidebar-system-card {
    justify-content: center;
    padding: 9px;
}

body.sidebar-collapsed .sidebar-system-icon {
    width: 38px;
    height: 38px;
}

body.sidebar-collapsed .sidebar-link::after {
    position: fixed;
    left: calc(var(--sidebar-collapsed-width) + 9px);
    z-index: 1100;
    max-width: 220px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: #0c2015;
    color: #ffffff;
    content: attr(aria-label);
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-5px);
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);
}

body.sidebar-collapsed .sidebar-link[aria-label]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* ============================================================
   33. SIDEBAR MOBİL DÜZEN
   ============================================================ */

@media (max-width: 991.98px) {
    .sidebar {
        width: min(var(--sidebar-width), 88vw);
        transform: translateX(-104%);
        box-shadow:
            20px 0 60px rgba(0, 0, 0, 0.28);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-collapsed .sidebar {
        width: min(var(--sidebar-width), 88vw);
    }

    body.sidebar-collapsed .sidebar-scroll {
        padding:
            20px 14px
            24px;
    }

    body.sidebar-collapsed .sidebar-user-card {
        justify-content: initial;
        min-height: 68px;
        padding: 11px;
    }

    body.sidebar-collapsed .sidebar-user-avatar {
        width: 42px;
        height: 42px;
    }

    body.sidebar-collapsed .sidebar-user-info,
    body.sidebar-collapsed .sidebar-user-status,
    body.sidebar-collapsed .sidebar-section-title span,
    body.sidebar-collapsed .sidebar-section-title::after,
    body.sidebar-collapsed .sidebar-label,
    body.sidebar-collapsed .sidebar-link-badge,
    body.sidebar-collapsed .sidebar-count-badge,
    body.sidebar-collapsed .sidebar-link-arrow,
    body.sidebar-collapsed .sidebar-sub-line,
    body.sidebar-collapsed .sidebar-system-content,
    body.sidebar-collapsed .sidebar-footer-info {
        display: initial;
    }

    body.sidebar-collapsed .sidebar-user-info {
        display: block;
    }

    body.sidebar-collapsed .sidebar-user-status {
        display: block;
    }

    body.sidebar-collapsed .sidebar-section-title {
        justify-content: initial;
        min-height: 26px;
        margin: 18px 9px 7px;
    }

    body.sidebar-collapsed .sidebar-section-title::before {
        display: none;
    }

    body.sidebar-collapsed .sidebar-section-title::after {
        display: block;
    }

    body.sidebar-collapsed .sidebar-link {
        justify-content: initial;
        min-height: 43px;
        padding: 8px 10px;
    }

    body.sidebar-collapsed .sidebar-label {
        display: block;
    }

    body.sidebar-collapsed .sidebar-icon {
        width: 23px;
        height: 23px;
        font-size: 15px;
    }

    body.sidebar-collapsed .sidebar-sub-link {
        padding:
            6px 10px
            6px 28px;
    }

    body.sidebar-collapsed .sidebar-sub-link .sidebar-icon {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    body.sidebar-collapsed .sidebar-system-card {
        justify-content: initial;
        padding: 13px;
    }

    body.sidebar-collapsed .sidebar-system-icon {
        width: 34px;
        height: 34px;
    }

    body.sidebar-collapsed .sidebar-link::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        width: min(295px, 92vw);
    }

    .sidebar-scroll {
        padding-top: 15px;
    }

    .sidebar-user-card {
        margin-bottom: 14px;
    }
}


/* ============================================================
   34. SIDEBAR HAREKET AZALTMA
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-link,
    .sidebar-icon,
    .sidebar-link-arrow {
        transition: none;
    }
}
/* ============================================================
   35. FOOTER
   ============================================================ */

.app-footer {
    min-height: var(--footer-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    transition:
        background-color var(--transition-normal),
        border-color var(--transition-normal);
}

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

.footer-left {
    justify-content: flex-start;
}

.footer-center {
    justify-content: center;
}

.footer-right {
    justify-content: flex-end;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-logo i {
    color: var(--secondary-dark);
    font-size: 15px;
}

.footer-company {
    color: var(--text-muted);
}

.footer-divider {
    color: var(--border-color);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-status i {
    color: var(--primary);
    font-size: 13px;
}

.footer-version strong {
    color: var(--primary);
}

#footerClock {
    min-width: 130px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    text-align: right;
}


/* ============================================================
   36. SAYFA BAŞLIĞI
   ============================================================ */

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

.page-header-left {
    min-width: 0;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 780;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.page-title-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 19px;
}

html[data-theme="dark"] .page-title-icon {
    background: rgba(25, 135, 84, 0.16);
}

.page-subtitle {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}


/* ============================================================
   37. BREADCRUMB
   ============================================================ */

.app-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 550;
}

.app-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.app-breadcrumb a:hover {
    color: var(--primary);
}

.app-breadcrumb i {
    color: var(--text-muted);
    font-size: 8px;
}

.app-breadcrumb .active {
    color: var(--primary);
    font-weight: 650;
}


/* ============================================================
   38. GENEL KART YAPISI
   ============================================================ */

.app-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast),
        background-color var(--transition-normal);
}

.app-card:hover {
    border-color: rgba(25, 135, 84, 0.2);
    box-shadow: var(--shadow-sm);
}

.app-card-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface);
}

.app-card-header-left {
    min-width: 0;
}

.app-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 750;
}

.app-card-title i {
    color: var(--primary);
    font-size: 16px;
}

.app-card-subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.app-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-card-body {
    padding: 17px;
}

.app-card-footer {
    padding: 12px 17px;
    border-top: 1px solid var(--border-light);
    background: var(--surface-soft);
}


/* ============================================================
   39. KPI KARTLARI
   ============================================================ */

.kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    position: relative;
    min-height: 138px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 135, 84, 0.24);
    box-shadow: var(--shadow-md);
}

.kpi-card::after {
    position: absolute;
    right: -28px;
    bottom: -35px;
    width: 110px;
    height: 110px;
    content: "";
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.06);
}

.kpi-card.kpi-success::after {
    background: rgba(25, 135, 84, 0.08);
}

.kpi-card.kpi-danger::after {
    background: rgba(220, 53, 69, 0.07);
}

.kpi-card.kpi-warning::after {
    background: rgba(245, 158, 11, 0.09);
}

.kpi-card.kpi-info::after {
    background: rgba(13, 202, 240, 0.08);
}

.kpi-card.kpi-purple::after {
    background: rgba(124, 58, 237, 0.08);
}

.kpi-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.kpi-card-label {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.kpi-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
}

html[data-theme="dark"] .kpi-card-icon {
    background: rgba(25, 135, 84, 0.16);
}

.kpi-success .kpi-card-icon {
    background: rgba(25, 135, 84, 0.12);
    color: var(--success);
}

.kpi-danger .kpi-card-icon {
    background: rgba(220, 53, 69, 0.11);
    color: var(--danger);
}

.kpi-warning .kpi-card-icon {
    background: rgba(245, 158, 11, 0.13);
    color: var(--warning);
}

.kpi-info .kpi-card-icon {
    background: rgba(13, 202, 240, 0.12);
    color: #0891b2;
}

.kpi-purple .kpi-card-icon {
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple);
}

.kpi-card-value {
    position: relative;
    z-index: 1;
    margin-top: 15px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.kpi-card-value small {
    margin-left: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.kpi-card-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.kpi-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

.kpi-change.neutral {
    color: var(--text-muted);
}

.kpi-period {
    color: var(--text-muted);
    font-size: 9px;
}


/* ============================================================
   40. İSTATİSTİK KUTULARI
   ============================================================ */

.stat-box {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface-soft);
}

.stat-box-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 17px;
}

.stat-box-label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 650;
    text-transform: uppercase;
}

.stat-box-value {
    margin-top: 3px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 750;
}


/* ============================================================
   41. TABLOLAR
   ============================================================ */

.table-responsive {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.app-table {
    width: 100%;
    margin: 0;
    color: var(--text-primary);
    vertical-align: middle;
}

.app-table > :not(caption) > * > * {
    padding: 12px 14px;
    border-bottom-color: var(--border-light);
    background: transparent;
    color: inherit;
}

.app-table thead th {
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table tbody td {
    color: var(--text-secondary);
    font-size: 11px;
}

.app-table tbody tr {
    transition:
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.app-table tbody tr:hover {
    background: var(--surface-hover);
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table .table-title {
    color: var(--text-primary);
    font-weight: 700;
}

.app-table .table-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
}

.table-nowrap {
    white-space: nowrap;
}

.table-number {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}


/* ============================================================
   42. TABLO İŞLEM BUTONLARI
   ============================================================ */

.table-action-btn {
    width: 31px;
    height: 31px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 13px;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.table-action-btn:hover {
    border-color: rgba(25, 135, 84, 0.35);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.table-action-btn.danger:hover {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.09);
    color: var(--danger);
}

.table-action-btn.warning:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}


/* ============================================================
   43. DURUM BADGE'LERİ
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 23px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.status-badge.success,
.status-badge.active,
.status-badge.tamamlandi {
    border-color: rgba(25, 135, 84, 0.18);
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.status-badge.danger,
.status-badge.passive,
.status-badge.iptal {
    border-color: rgba(220, 53, 69, 0.18);
    background: rgba(220, 53, 69, 0.09);
    color: var(--danger);
}

.status-badge.warning,
.status-badge.pending,
.status-badge.bekliyor {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.11);
    color: #d88700;
}

.status-badge.info,
.status-badge.kismi {
    border-color: rgba(13, 202, 240, 0.2);
    background: rgba(13, 202, 240, 0.1);
    color: #0785a0;
}

.status-badge.neutral {
    border-color: var(--border-color);
    background: var(--surface-soft);
    color: var(--text-secondary);
}


/* ============================================================
   44. FORM YAPISI
   ============================================================ */

.form-section {
    margin-bottom: 22px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 750;
}

.form-section-title i {
    color: var(--primary);
    font-size: 15px;
}

.form-label {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
}

.form-label.required::after {
    margin-left: 3px;
    color: var(--danger);
    content: "*";
}

.form-control,
.form-select {
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--text-primary);
    font-size: 12px;
    box-shadow: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-control:hover,
.form-select:hover {
    border-color: #bac8d8;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 135, 84, 0.58);
    background-color: var(--surface);
    color: var(--text-primary);
    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-select:disabled {
    background: var(--surface-soft);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

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

.input-group-text {
    border-color: var(--border-color);
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 11px;
}

html[data-theme="dark"] .form-select {
    background-image:
        url(
            "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a8b5c7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"
        );
}


/* ============================================================
   45. CHECKBOX VE RADIO
   ============================================================ */

.form-check-input {
    border-color: var(--border-color);
    background-color: var(--surface);
    box-shadow: none;
}

.form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.12);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 11px;
}


/* ============================================================
   46. GENEL BUTONLAR
   ============================================================ */

.btn {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow:
        0 7px 18px rgba(25, 135, 84, 0.2);
}

.btn-secondary {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: rgba(25, 135, 84, 0.3);
    background: var(--surface-hover);
    color: var(--primary);
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
}

.btn-danger {
    border-color: var(--danger);
    background: var(--danger);
}

.btn-warning {
    border-color: var(--warning);
    background: var(--warning);
    color: #3d2b00;
}

.btn-outline-primary {
    border-color: rgba(25, 135, 84, 0.5);
    color: var(--primary);
}

.btn-outline-primary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.btn-light {
    border-color: var(--border-color);
    background: var(--surface-soft);
    color: var(--text-secondary);
}

.btn-sm {
    min-height: 33px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 10px;
}

.btn-lg {
    min-height: 46px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 12px;
}

.btn-icon {
    width: 39px;
    min-width: 39px;
    padding: 0;
}


/* ============================================================
   47. FİLTRE PANELİ
   ============================================================ */

.filter-panel {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.filter-panel-grid {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 12px;
    align-items: end;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* ============================================================
   48. ARAMA ALANI
   ============================================================ */

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: var(--text-muted);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input-wrapper .form-control {
    padding-left: 38px;
}

.search-clear-button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    transform: translateY(-50%);
}

.search-clear-button:hover {
    background: var(--surface-hover);
    color: var(--danger);
}


/* ============================================================
   49. PAGINATION
   ============================================================ */

.pagination {
    gap: 4px;
    margin: 0;
}

.page-link {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0 9px;
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 10px;
    box-shadow: none;
}

.page-link:hover {
    border-color: rgba(25, 135, 84, 0.3);
    background: var(--surface-hover);
    color: var(--primary);
}

.page-item.active .page-link {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.page-item.disabled .page-link {
    border-color: var(--border-light);
    background: var(--surface-soft);
    color: var(--text-muted);
}


/* ============================================================
   50. PROGRESS BAR
   ============================================================ */

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-hover);
}

.progress-bar {
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--primary),
            #25a86a
        );
}

.progress-sm {
    height: 5px;
}

.progress-lg {
    height: 12px;
}


/* ============================================================
   51. BOŞ DURUM EKRANI
   ============================================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 35px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 29px;
}

.empty-state-title {
    margin-top: 18px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 750;
}

.empty-state-description {
    max-width: 420px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.7;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}


/* ============================================================
   52. BOOTSTRAP MODAL UYARLAMALARI
   ============================================================ */

.modal-content {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    min-height: 62px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 750;
}

.modal-body {
    padding: 18px;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-light);
    background: var(--surface-soft);
}

.modal-backdrop.show {
    opacity: 0.55;
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%);
}


/* ============================================================
   53. OFFCANVAS
   ============================================================ */

.offcanvas {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
}

.offcanvas-header {
    min-height: 66px;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-title {
    font-size: 14px;
    font-weight: 750;
}


/* ============================================================
   54. RESPONSIVE — KART, TABLO VE FORM
   ============================================================ */

@media (max-width: 1399.98px) {
    .kpi-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .filter-panel-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }
}

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

    .filter-panel-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .app-footer {
        grid-template-columns: 1fr auto;
    }

    .footer-center {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        justify-content: flex-start;
    }

    .page-title {
        font-size: 20px;
    }

    .page-title-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kpi-card {
        min-height: 125px;
    }

    .filter-panel-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .app-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-card-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .app-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 13px 15px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: space-between;
    }

    .footer-company,
    .footer-divider {
        display: none;
    }

    #footerClock {
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .filter-panel-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .app-card-body {
        padding: 14px;
    }

    .app-card-header {
        padding: 13px 14px;
    }

    .app-table > :not(caption) > * > * {
        padding: 10px;
    }

    .page-header-actions .btn {
        flex: 1;
    }
}
/* ============================================================
   55. DASHBOARD GRID YAPISI
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-main-column,
.dashboard-side-column {
    min-width: 0;
}

.dashboard-main-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ============================================================
   56. GRAFİK KARTLARI
   ============================================================ */

.chart-card {
    min-height: 390px;
}

.chart-card .app-card-body {
    min-height: 325px;
}

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

.chart-container-sm {
    min-height: 220px;
}

.chart-container-lg {
    min-height: 360px;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.chart-period-button {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.chart-period-button:hover {
    border-color: rgba(25, 135, 84, 0.3);
    color: var(--primary);
}

.chart-period-button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 600;
}

.chart-legend-color {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--primary);
}

.chart-legend-color.income {
    background: var(--success);
}

.chart-legend-color.expense {
    background: var(--danger);
}

.chart-legend-color.progress {
    background: var(--blue);
}


/* ============================================================
   57. APEXCHARTS UYARLAMALARI
   ============================================================ */

.apexcharts-canvas,
.apexcharts-svg {
    background: transparent !important;
}

.apexcharts-text,
.apexcharts-legend-text,
.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
    fill: var(--text-secondary) !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-family) !important;
}

.apexcharts-gridline {
    stroke: var(--border-light);
}

.apexcharts-tooltip {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.apexcharts-tooltip-title {
    border-bottom: 1px solid var(--border-light) !important;
    background: var(--surface-soft) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-family) !important;
}

.apexcharts-tooltip-text,
.apexcharts-tooltip-text-y-label,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip-text-z-label,
.apexcharts-tooltip-text-z-value {
    color: var(--text-primary) !important;
    font-family: var(--font-family) !important;
}

.apexcharts-menu {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-md) !important;
}

.apexcharts-menu-item {
    color: var(--text-secondary) !important;
}

.apexcharts-menu-item:hover {
    background: var(--surface-hover) !important;
    color: var(--primary) !important;
}


/* ============================================================
   58. ALARM MERKEZİ
   ============================================================ */

.alarm-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alarm-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-soft);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.alarm-item:hover {
    border-color: rgba(25, 135, 84, 0.22);
    background: var(--surface-hover);
    transform: translateX(2px);
}

.alarm-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 15px;
}

.alarm-item.success .alarm-icon {
    background: rgba(25, 135, 84, 0.12);
    color: var(--success);
}

.alarm-item.warning .alarm-icon {
    background: rgba(245, 158, 11, 0.13);
    color: var(--warning);
}

.alarm-item.danger .alarm-icon {
    background: rgba(220, 53, 69, 0.11);
    color: var(--danger);
}

.alarm-item.info .alarm-icon {
    background: rgba(13, 202, 240, 0.12);
    color: #0891b2;
}

.alarm-content {
    min-width: 0;
    flex: 1;
}

.alarm-title {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.alarm-description {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.6;
}

.alarm-time {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 8px;
}

.alarm-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 8px;
    font-weight: 700;
}


/* ============================================================
   59. PROJE İLERLEME KARTLARI
   ============================================================ */

.project-progress-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.project-progress-item {
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface-soft);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.project-progress-item:hover {
    border-color: rgba(25, 135, 84, 0.24);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.project-progress-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-progress-title {
    min-width: 0;
}

.project-progress-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-progress-code {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 8px;
}

.project-progress-value {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.project-progress-bar {
    margin-top: 11px;
}

.project-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 8px;
}


/* ============================================================
   60. AKTİVİTE LİSTESİ
   ============================================================ */

.activity-list {
    position: relative;
    display: flex;
    flex-direction: column;
}

.activity-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 18px;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item::before {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 16px;
    width: 1px;
    content: "";
    background: var(--border-color);
}

.activity-item:last-child::before {
    display: none;
}

.activity-icon {
    position: relative;
    z-index: 1;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface);
    color: var(--primary);
    font-size: 14px;
}

.activity-content {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.activity-title {
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.activity-description {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.55;
}

.activity-time {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 8px;
}


/* ============================================================
   61. ÖZET LİSTE
   ============================================================ */

.summary-list {
    display: flex;
    flex-direction: column;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item:first-child {
    padding-top: 0;
}

.summary-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.summary-item-left {
    min-width: 0;
}

.summary-item-label {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}

.summary-item-description {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 8px;
}

.summary-item-value {
    flex: 0 0 auto;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   62. BİLDİRİM PANELİ
   ============================================================ */

.notification-panel {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    bottom: 0;
    z-index: 1060;
    width: min(390px, 100vw);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow:
        -20px 0 50px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal),
        visibility var(--transition-normal);
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.notification-panel-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--border-light);
}

.notification-panel-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 750;
}

.notification-panel-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
}

.notification-panel-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-panel-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-soft);
}

.notification-tab {
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
}

.notification-tab:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

.notification-tab.active {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--primary);
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border-radius: 12px;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-hover);
    transform: translateX(2px);
}

.notification-item.unread {
    background: rgba(25, 135, 84, 0.06);
}

.notification-item.unread::after {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--primary);
}

.notification-item-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 15px;
}

.notification-item-icon.warning {
    background: rgba(245, 158, 11, 0.13);
    color: var(--warning);
}

.notification-item-icon.danger {
    background: rgba(220, 53, 69, 0.11);
    color: var(--danger);
}

.notification-item-icon.info {
    background: rgba(13, 202, 240, 0.12);
    color: #0891b2;
}

.notification-item-content {
    min-width: 0;
    flex: 1;
    padding-right: 10px;
}

.notification-item-title {
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.notification-item-description {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.55;
}

.notification-item-time {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 8px;
}

.notification-panel-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--surface-soft);
}


/* ============================================================
   63. PANEL ARKA PLANI
   ============================================================ */

.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(5, 15, 10, 0.48);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(2px);
    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal);
}

.panel-backdrop.show {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   64. GLOBAL ARAMA MODALI
   ============================================================ */

.global-search-modal .modal-dialog {
    max-width: 760px;
    margin-top: 9vh;
}

.global-search-modal .modal-content {
    max-height: 78vh;
}

.global-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border-light);
}

.global-search-header > i {
    color: var(--primary);
    font-size: 19px;
}

.global-search-input {
    min-height: 44px;
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    box-shadow: none;
}

.global-search-input:focus {
    outline: 0;
}

.global-search-input::placeholder {
    color: var(--text-muted);
}

.global-search-shortcut {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 650;
}

.global-search-body {
    max-height: 58vh;
    overflow-y: auto;
    padding: 10px;
}

.search-group-title {
    padding: 8px 9px 6px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 10px;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--surface-hover);
    transform: translateX(2px);
}

.search-result-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
}

.search-result-content {
    min-width: 0;
    flex: 1;
}

.search-result-title {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-description {
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 11px;
}

.global-search-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 17px;
    border-top: 1px solid var(--border-light);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 8px;
}

.global-search-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.global-search-footer kbd {
    min-width: 21px;
    padding: 2px 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 8px;
    text-align: center;
}


/* ============================================================
   65. HIZLI İŞLEM MODALI
   ============================================================ */

.quick-action-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 12px;
}

.quick-action-item {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-soft);
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.quick-action-item:hover {
    border-color: rgba(25, 135, 84, 0.3);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
}

.quick-action-title {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 750;
}

.quick-action-description {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1.5;
}


/* ============================================================
   66. DETAY BİLGİ SATIRLARI
   ============================================================ */

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.5fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 650;
}

.detail-value {
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    text-align: right;
}


/* ============================================================
   67. PARA VE FİNANS GÖSTERİMLERİ
   ============================================================ */

.money-positive {
    color: var(--success) !important;
}

.money-negative {
    color: var(--danger) !important;
}

.money-neutral {
    color: var(--text-primary) !important;
}

.money-value {
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.financial-summary {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 12px;
}

.financial-summary-item {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface-soft);
}

.financial-summary-label {
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.financial-summary-value {
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   68. RESPONSIVE — DASHBOARD VE MODALLAR
   ============================================================ */

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

    .dashboard-side-column {
        display: grid;
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .financial-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 767.98px) {
    .dashboard-side-column {
        display: flex;
    }

    .chart-card {
        min-height: 330px;
    }

    .chart-card .app-card-body {
        min-height: 270px;
    }

    .chart-container {
        min-height: 245px;
    }

    .notification-panel {
        top: var(--topbar-height);
        width: 100%;
    }

    .global-search-modal .modal-dialog {
        margin:
            calc(var(--topbar-height) + 10px)
            10px
            10px;
    }

    .global-search-modal .modal-content {
        max-height:
            calc(
                100vh -
                var(--topbar-height) -
                20px
            );
    }

    .global-search-body {
        max-height:
            calc(
                100vh -
                var(--topbar-height) -
                180px
            );
    }

    .quick-action-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .financial-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-item {
        min-height: 105px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .detail-value {
        text-align: left;
    }

    .notification-panel-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .notification-panel-tabs {
        overflow-x: auto;
    }

    .notification-tab {
        white-space: nowrap;
    }
}
/* ============================================================
   69. LOGIN SAYFASI
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);
    overflow: hidden;
    background: var(--body-bg);
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(5, 31, 18, 0.95),
            rgba(14, 70, 41, 0.93)
        );
    color: #ffffff;
}

.auth-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(240, 194, 54, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(25, 135, 84, 0.25),
            transparent 35%
        );
}

.auth-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

.auth-brand,
.auth-visual-content,
.auth-visual-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            var(--secondary),
            var(--secondary-dark)
        );
    color: #3a2d04;
    font-size: 22px;
    font-weight: 850;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2);
}

.auth-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.25px;
}

.auth-brand-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.auth-visual-content {
    max-width: 630px;
    margin: auto 0;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid rgba(240, 194, 54, 0.22);
    border-radius: 999px;
    background: rgba(240, 194, 54, 0.1);
    color: #f5d76c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.auth-visual-title {
    max-width: 650px;
    margin: 22px 0 0;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.auth-visual-description {
    max-width: 560px;
    margin-top: 19px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.8;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 13px;
    margin-top: 32px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.auth-feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(240, 194, 54, 0.12);
    color: var(--secondary);
    font-size: 15px;
}

.auth-feature-title {
    color: #ffffff;
    font-size: 10px;
    font-weight: 750;
}

.auth-feature-description {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
    line-height: 1.55;
}

.auth-visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 8px;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-status .status-dot {
    width: 6px;
    height: 6px;
    margin: 0;
}

.auth-form-side {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--surface);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 430px;
}

.auth-form-header {
    margin-bottom: 27px;
}

.auth-form-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 27px;
    font-weight: 820;
    letter-spacing: -0.6px;
}

.auth-form-subtitle {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
}

.auth-form .form-label {
    margin-bottom: 7px;
}

.auth-form .form-control {
    min-height: 48px;
    padding-right: 15px;
    padding-left: 43px;
    border-radius: 12px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--text-muted);
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 14px 0 20px;
}

.auth-forgot-link {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.auth-forgot-link:hover {
    color: var(--primary-dark);
}

.auth-submit {
    min-height: 48px;
    width: 100%;
    border-radius: 12px;
    font-size: 12px;
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1.6;
}

.auth-security-note i {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 14px;
}

.auth-form-footer {
    margin-top: 27px;
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1.7;
    text-align: center;
}


/* ============================================================
   70. SKELETON LOADER
   ============================================================ */

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    background: var(--surface-hover);
}

.skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent
        );
    transform: translateX(-100%);
    animation: skeletonLoading 1.4s infinite;
}

html[data-theme="dark"] .skeleton::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent
        );
}

.skeleton-text {
    width: 100%;
    height: 11px;
}

.skeleton-text-sm {
    width: 45%;
    height: 8px;
}

.skeleton-title {
    width: 65%;
    height: 17px;
}

.skeleton-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.skeleton-card {
    min-height: 130px;
}

@keyframes skeletonLoading {
    100% {
        transform: translateX(100%);
    }
}


/* ============================================================
   71. TOAST BİLDİRİMLERİ
   ============================================================ */

.toast-container-custom {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 30px));
}

.app-toast {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.app-toast-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--border-light);
}

.app-toast-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
}

.app-toast-title {
    min-width: 0;
    flex: 1;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 750;
}

.app-toast-time {
    color: var(--text-muted);
    font-size: 8px;
}

.app-toast-body {
    padding: 11px 13px;
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.6;
}

.app-toast.success {
    border-left: 4px solid var(--success);
}

.app-toast.danger {
    border-left: 4px solid var(--danger);
}

.app-toast.warning {
    border-left: 4px solid var(--warning);
}

.app-toast.info {
    border-left: 4px solid var(--info);
}


/* ============================================================
   72. TOOLTIP VE POPOVER
   ============================================================ */

.tooltip {
    --bs-tooltip-bg: #0f2318;
    --bs-tooltip-color: #ffffff;
    --bs-tooltip-opacity: 1;
}

.tooltip-inner {
    max-width: 240px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.popover {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.popover-header {
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-soft);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
}

.popover-body {
    color: var(--text-secondary);
    font-size: 9px;
}


/* ============================================================
   73. DOSYA YÜKLEME ALANI
   ============================================================ */

.file-upload-area {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    background: var(--surface-soft);
    text-align: center;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: rgba(25, 135, 84, 0.55);
    background: rgba(25, 135, 84, 0.05);
}

.file-upload-area.dragover {
    transform: scale(1.01);
}

.file-upload-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 21px;
}

.file-upload-title {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 750;
}

.file-upload-description {
    color: var(--text-muted);
    font-size: 9px;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}


/* ============================================================
   74. SEKME YAPISI
   ============================================================ */

.app-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-soft);
}

.app-tab {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.app-tab:hover {
    color: var(--primary);
}

.app-tab.active {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.app-tab-count {
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--surface-hover);
    color: var(--text-secondary);
    font-size: 8px;
}

.app-tab.active .app-tab-count {
    background: rgba(25, 135, 84, 0.11);
    color: var(--primary);
}


/* ============================================================
   75. TAKVİM VE TARİH ALANI
   ============================================================ */

.date-badge {
    width: 47px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface);
    text-align: center;
}

.date-badge-month {
    padding: 3px 4px;
    background: var(--primary);
    color: #ffffff;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.date-badge-day {
    padding: 6px 4px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}


/* ============================================================
   76. HATA SAYFALARI
   ============================================================ */

.error-page {
    min-height:
        calc(
            100vh -
            var(--topbar-height) -
            var(--footer-height)
        );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.error-page-content {
    max-width: 600px;
    text-align: center;
}

.error-code {
    color: var(--primary);
    font-size: clamp(75px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -8px;
    opacity: 0.13;
}

.error-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    margin: -34px auto 20px;
    border-radius: 24px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 32px;
}

.error-title {
    color: var(--text-primary);
    font-size: 23px;
    font-weight: 800;
}

.error-description {
    max-width: 480px;
    margin: 10px auto 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}


/* ============================================================
   77. GENEL ANİMASYONLAR
   ============================================================ */

.fade-in {
    animation: fadeIn 0.35s ease both;
}

.fade-up {
    animation: fadeUp 0.4s ease both;
}

.fade-down {
    animation: fadeDown 0.4s ease both;
}

.scale-in {
    animation: scaleIn 0.3s ease both;
}

.slide-in-right {
    animation: slideInRight 0.35s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
   78. GECİKMELİ ANİMASYON SINIFLARI
   ============================================================ */

.animation-delay-1 {
    animation-delay: 0.05s;
}

.animation-delay-2 {
    animation-delay: 0.1s;
}

.animation-delay-3 {
    animation-delay: 0.15s;
}

.animation-delay-4 {
    animation-delay: 0.2s;
}

.animation-delay-5 {
    animation-delay: 0.25s;
}


/* ============================================================
   79. DARK MODE İNCE AYARLARI
   ============================================================ */

html[data-theme="dark"] .app-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .user-dropdown {
    border-color: var(--border-color);
}

html[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-light);
    --bs-table-hover-bg: var(--surface-hover);
    --bs-table-hover-color: var(--text-primary);
}

html[data-theme="dark"] .dropdown-menu {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--text-secondary);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background: var(--surface-hover);
    color: var(--primary);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    border-color: var(--border-color);
}

html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] input[type="datetime-local"] {
    color-scheme: dark;
}

html[data-theme="dark"] .btn-light {
    border-color: var(--border-color);
    background: var(--surface-soft);
    color: var(--text-secondary);
}

html[data-theme="dark"] .page-link {
    border-color: var(--border-color);
    background: var(--surface);
}

html[data-theme="dark"] .alert {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
}


/* ============================================================
   80. MOBİL SON DÜZENLEMELER
   ============================================================ */

@media (max-width: 991.98px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        min-height: 100vh;
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    .toast-container-custom {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .app-tabs {
        border-radius: 10px;
    }

    .auth-form-side {
        padding: 24px;
    }

    .auth-form-wrapper {
        max-width: 470px;
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        align-items: flex-start;
        padding: 25px 17px;
    }

    .auth-form-wrapper {
        margin-top: 8vh;
    }

    .auth-form-title {
        font-size: 23px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .error-page {
        padding: 20px;
    }

    .error-code {
        letter-spacing: -5px;
    }
}


/* ============================================================
   81. ERİŞİLEBİLİRLİK
   ============================================================ */

:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.22);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 99999;
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 15px;
    color: #ffffff;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ============================================================
   82. HAREKET AZALTMA
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   83. YAZDIRMA STİLLERİ
   ============================================================ */

@media print {
    :root {
        --body-bg: #ffffff;
        --surface: #ffffff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --text-muted: #666666;
        --border-color: #cccccc;
        --border-light: #dddddd;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt;
    }

    .sidebar,
    .topbar,
    .app-footer,
    .sidebar-overlay,
    .panel-backdrop,
    .notification-panel,
    .page-loader,
    .flash-container,
    .toast-container-custom,
    .page-header-actions,
    .filter-panel,
    .table-actions,
    .btn,
    .no-print {
        display: none !important;
    }

    .app-main,
    body.sidebar-collapsed .app-main {
        min-height: auto;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-content {
        min-height: auto;
        padding: 0 !important;
    }

    .content-container {
        max-width: none;
    }

    .app-card,
    .kpi-card {
        break-inside: avoid;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }

    .app-card:hover,
    .kpi-card:hover {
        transform: none;
        box-shadow: none;
    }

    .page-header {
        margin-bottom: 14px;
    }

    .page-title {
        color: #000000 !important;
        font-size: 18pt;
    }

    .app-table {
        font-size: 8pt;
    }

    .app-table thead th {
        background: #eeeeee !important;
        color: #000000 !important;
    }

    .app-table tbody td {
        color: #222222 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: none !important;
    }

    @page {
        size: A4;
        margin: 12mm;
    }
}


/* ============================================================
   84. SON YARDIMCI SINIFLAR
   ============================================================ */

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-visible {
    overflow: visible !important;
}

.flex-1 {
    flex: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.font-tabular {
    font-variant-numeric: tabular-nums;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.rounded-custom {
    border-radius: var(--radius-lg) !important;
}

.surface-hover:hover {
    background: var(--surface-hover) !important;
}

.border-danger-soft {
    border-color: rgba(220, 53, 69, 0.22) !important;
}

.border-success-soft {
    border-color: rgba(25, 135, 84, 0.22) !important;
}

.bg-success-soft {
    background: rgba(25, 135, 84, 0.1) !important;
}

.bg-danger-soft {
    background: rgba(220, 53, 69, 0.09) !important;
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.11) !important;
}

.bg-info-soft {
    background: rgba(13, 202, 240, 0.1) !important;
}


/* ============================================================
   ROBERTI ERP PROFESSIONAL V11
   APP.CSS SONU
   ============================================================ */

/* ==========================================================
   ROBERTİ ENERJİ — KURUMSAL ARKA PLAN VE TAŞMA DÜZELTMESİ
   ========================================================== */

:root {
    --roberti-page-bg: #f3f7f5;
    --roberti-page-bg-secondary: #eaf2ee;
    --roberti-card-bg: rgba(255, 255, 255, 0.96);
    --roberti-border: rgba(15, 74, 52, 0.09);
    --roberti-shadow: 0 12px 35px rgba(15, 57, 42, 0.07);
    --roberti-shadow-hover: 0 18px 45px rgba(15, 57, 42, 0.12);
    --roberti-green-dark: #0d3b2a;
    --roberti-green: #198754;
    --roberti-yellow: #f0c236;
}


/* Sayfanın yatay taşmasını engeller. */
html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
}

body {
    background:
        radial-gradient(
            circle at 95% 4%,
            rgba(240, 194, 54, 0.11),
            transparent 23rem
        ),
        radial-gradient(
            circle at 5% 92%,
            rgba(25, 135, 84, 0.09),
            transparent 28rem
        ),
        linear-gradient(
            145deg,
            var(--roberti-page-bg) 0%,
            #f8faf9 48%,
            var(--roberti-page-bg-secondary) 100%
        );
    background-attachment: fixed;
}


/* Bootstrap satırlarının ekran dışına taşmasını önler. */
.container,
.container-fluid,
.row,
main,
.main-content,
.content-wrapper,
.page-content {
    max-width: 100%;
}

.container-fluid {
    padding-left: clamp(14px, 2vw, 28px);
    padding-right: clamp(14px, 2vw, 28px);
}

.row {
    margin-left: calc(-0.5 * var(--bs-gutter-x));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
}


/* Flex ve grid elemanlarının içerik yüzünden büyümesini engeller. */
.main-content,
.content-wrapper,
.page-content,
.sidebar-content,
.row > *,
.d-flex > * {
    min-width: 0;
}


/* Sidebar düzeni */
.sidebar,
.app-sidebar,
.sidebar-wrapper {
    max-width: 100%;
    overflow-x: hidden !important;
}

.sidebar-content {
    overflow-x: hidden !important;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.24)
        transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.24);
}


/* Depo ve diğer sidebar modül başlıkları */
.sidebar-module {
    margin-top: 12px;
    margin-bottom: 8px;
}

.sidebar-module-title {
    padding: 12px 16px 7px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 11px;
    width: calc(100% - 16px);
    min-width: 0;
    margin: 3px 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.nav-link-custom:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(2px);
}

.nav-link-custom.active {
    color: #fff;
    border-color: rgba(240, 194, 54, 0.30);
    background:
        linear-gradient(
            135deg,
            rgba(240, 194, 54, 0.24),
            rgba(255, 255, 255, 0.08)
        );
    box-shadow: inset 3px 0 0 var(--roberti-yellow);
}

.nav-link-custom .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-custom .nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Ana içerik kartları */
.card,
.panel-card,
.form-card,
.info-card,
.finance-form-card,
.finance-info-card {
    border-color: var(--roberti-border) !important;
    background: var(--roberti-card-bg);
    box-shadow: var(--roberti-shadow);
    backdrop-filter: blur(8px);
}

.card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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


/* Başlık alanları */
.page-hero,
.finance-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::after,
.finance-hero::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
}


/* Tablolar sayfayı genişletmesin. */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: inherit;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}

.table th {
    white-space: nowrap;
    color: #435048;
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: 0.015em;
}

.table td {
    vertical-align: middle;
}


/* Uzun metin ve kodların ekranı genişletmesini önler. */
td,
th,
p,
span,
div,
a,
pre,
code {
    overflow-wrap: break-word;
}

pre,
code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
}


/* Form görünümü */
.form-control,
.form-select,
.input-group-text {
    border-color: #dbe6e0;
    border-radius: 12px;
}

.form-control,
.form-select {
    min-height: 46px;
    background-color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 135, 84, 0.65);
    box-shadow: 0 0 0 0.22rem rgba(25, 135, 84, 0.12);
}


/* Butonlar */
.btn {
    border-radius: 11px;
}

.btn-success {
    border-color: #198754;
    background:
        linear-gradient(
            135deg,
            #198754,
            #116a40
        );
}

.btn-warning {
    border-color: #f0c236;
    background:
        linear-gradient(
            135deg,
            #f6d55c,
            #f0c236
        );
}


/* Mobil düzen */
@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-hero,
    .finance-hero {
        padding: 20px;
        border-radius: 16px;
    }

    .card,
    .panel-card {
        border-radius: 15px !important;
    }
}

@media (max-width: 575.98px) {
    .page-header,
    .page-hero,
    .finance-hero {
        margin-left: 0;
        margin-right: 0;
    }

    .btn {
        max-width: 100%;
    }

    .display-6 {
        font-size: 2rem;
    }
}
