/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo svg {
    width: 34px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 72px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
    display: block !important;
}

.demo-inline-spacing>* {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
    margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }

    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.notyf__message {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/*
* Dark theme override — siyaha yakın tonlar
******************************************************************************/

/* --- Önceki palet (lacivert-siyah) ---
[data-bs-theme=dark] {
    --bs-body-bg: #1a1d2e;
    --bs-body-bg-rgb: 26, 29, 46;
    --bs-paper-bg: #232738;
    --bs-paper-bg-rgb: 35, 39, 56;
    --bs-border-color: #2e3247;
    --bs-gray-25: #272b3e;
    --bs-gray-50: #2d3145;
    --bs-gray-75: #303449;
    --bs-gray-100: #464b66;
    --bs-gray-200: #383c52;
    --bs-menu-bg: #232738;
    --bs-menu-bg-rgb: 35, 39, 56;
}
--- */

/* GitHub-style dark palette */
[data-bs-theme=dark] {
    --bs-body-bg: #010409;
    --bs-body-bg-rgb: 1, 4, 9;
    --bs-paper-bg: #0d1117;
    --bs-paper-bg-rgb: 13, 17, 23;
    --bs-border-color: #21262d;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.08);

    /* Gray scale */
    --bs-gray-25: #0d1117;
    --bs-gray-50: #161b22;
    --bs-gray-75: #1c2128;
    --bs-gray-100: #30363d;
    --bs-gray-200: #21262d;

    /* Shadows */
    --bs-box-shadow: 0 0.1875rem 0.75rem 0 rgba(0, 0, 0, 0.4);
    --bs-box-shadow-xs: 0 0.0625rem 0.375rem 0 rgba(0, 0, 0, 0.3);
    --bs-box-shadow-sm: 0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.35);
    --bs-box-shadow-lg: 0 0.25rem 1.125rem 0 rgba(0, 0, 0, 0.45);
    --bs-box-shadow-xl: 0 0.3125rem 1.875rem 0 rgba(0, 0, 0, 0.5);
    --bs-floating-component-shadow: 0 0.31rem 1.25rem 0 rgba(0, 0, 0, 0.5);

    /* Subtle backgrounds */
    --bs-primary-bg-subtle: #1a1640;
    --bs-secondary-bg-subtle: #1c2128;
    --bs-success-bg-subtle: #0d2818;
    --bs-info-bg-subtle: #0c2d3f;
    --bs-warning-bg-subtle: #2a1f0a;
    --bs-danger-bg-subtle: #2d0a14;
    --bs-light-bg-subtle: #161b22;
    --bs-dark-bg-subtle: #1c2128;

    /* Subtle borders */
    --bs-primary-border-subtle: #2d2660;
    --bs-secondary-border-subtle: #30363d;
    --bs-light-border-subtle: #21262d;
    --bs-dark-border-subtle: #30363d;

    /* Menu */
    --bs-menu-bg: #0d1117;
    --bs-menu-bg-rgb: 13, 17, 23;
}

[data-bs-theme=dark] .nav-tabs .nav-link:not(.active) {
    color: var(--bs-body-color);
    background-color: transparent;
}

[data-bs-theme=dark] .nav-tabs .nav-link:not(.active):hover {
    color: var(--bs-heading-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar icon buttons & dropdown-user */
[data-bs-theme=dark] .layout-navbar .nav-link.btn {
    --bs-btn-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-border-color: rgba(255, 255, 255, 0.1);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bs-btn-bg);
    border: 1px solid var(--bs-btn-border-color);
}

[data-bs-theme=dark] .layout-navbar .dropdown-user > .nav-link {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

[data-bs-theme=dark] .layout-navbar .dropdown-user > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Light theme — navbar icon buttons & dropdown-user */
[data-bs-theme=light] .layout-navbar .nav-link.btn {
    --bs-btn-bg: rgba(0, 0, 0, 0.04);
    --bs-btn-border-color: rgba(0, 0, 0, 0.1);
    --bs-btn-hover-bg: rgba(0, 0, 0, 0.08);
    --bs-btn-hover-border-color: rgba(0, 0, 0, 0.15);
    background-color: var(--bs-btn-bg);
    border: 1px solid var(--bs-btn-border-color);
}

[data-bs-theme=light] .layout-navbar .dropdown-user > .nav-link {
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

[data-bs-theme=light] .layout-navbar .dropdown-user > .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.apexcharts-theme-dark {
    --bs-paper-bg: #0d1117;
    --bs-border-color: #21262d;
    --bs-box-shadow: 0 0.1875rem 0.75rem 0 rgba(0, 0, 0, 0.4);
}

/* CKEditor dark mode */
[data-bs-theme="dark"] .cke { border-color: #444564 !important; }
[data-bs-theme="dark"] .cke_top,
[data-bs-theme="dark"] .cke_bottom { background: #2b2c40 !important; border-color: #444564 !important; }
[data-bs-theme="dark"] .cke_resizer { border-color: transparent #444564 transparent transparent !important; }
[data-bs-theme="dark"] .cke_toolbar_separator { background: #444564 !important; }
[data-bs-theme="dark"] .cke_button { filter: invert(0.85) hue-rotate(180deg); }
[data-bs-theme="dark"] .cke_combo_text,
[data-bs-theme="dark"] .cke_path_item { color: #d0d2d8 !important; }

/* CKEditor source (kaynak) view dark mode */
[data-bs-theme="dark"] .cke_source {
    background-color: #2b2c40 !important;
    color: #d0d2d8 !important;
}
