/* ============================================================
   KLYVERO LOGIN + ROOT APP DARK MODE
   KLYVERO_PUBLIC_THEME_APP_V852
   ============================================================ */

:root[data-theme="dark"] {
    --text: #f4f4f5;
    --muted: #969eaa;
    --muted-dark: #b2b8c3;

    --line: #3a4049;
    --soft: #17191d;
    --white: #22252b;

    --success-bg:
        rgba(
            16,
            185,
            129,
            0.13
        );

    --success-text:
        #4ade9b;

    --error:
        #f87171;
}


/* ============================================================
   PAGE
   ============================================================ */

:root[data-theme="dark"] body {
    color:
        var(--text);

    background:
        #17191d;
}


/* ============================================================
   LOGIN BACKGROUND
   ============================================================ */

:root[data-theme="dark"] .login-page {
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(
                139,
                92,
                246,
                0.14
            ),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(
                59,
                130,
                246,
                0.11
            ),
            transparent 30%
        ),
        #17191d;
}

:root[data-theme="dark"] .login-shell {
    border-color:
        #3a4049;

    background:
        #22252b;

    box-shadow:
        0
        35px
        90px
        rgba(
            0,
            0,
            0,
            0.38
        );
}


/*
 * Linkerpaneel was al donker.
 * We maken het iets meer onderdeel van hetzelfde thema.
 */

:root[data-theme="dark"] .login-brand-panel {
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(
                139,
                92,
                246,
                0.48
            ),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(
                59,
                130,
                246,
                0.24
            ),
            transparent 34%
        ),
        #1c1f24;
}


/* ============================================================
   LOGIN FORM
   ============================================================ */

:root[data-theme="dark"] .login-form-panel {
    background:
        #22252b;
}

:root[data-theme="dark"] .login-heading h2,
:root[data-theme="dark"] .form-field label {
    color:
        #f4f4f5;
}

:root[data-theme="dark"] .login-heading p,
:root[data-theme="dark"] .login-help,
:root[data-theme="dark"] .back-link {
    color:
        #969eaa;
}

:root[data-theme="dark"] .back-link:hover {
    color:
        #ffffff;
}

:root[data-theme="dark"] .form-field input {
    border-color:
        #464d58;

    background:
        #1b1e23;

    color:
        #f4f4f5;
}

:root[data-theme="dark"]
.form-field input::placeholder {
    color:
        #6f7783;
}

:root[data-theme="dark"]
.form-field input:focus {
    border-color:
        #60a5fa;

    box-shadow:
        0
        0
        0
        3px
        rgba(
            59,
            130,
            246,
            0.16
        );
}

:root[data-theme="dark"] .admin-login-link {
    border-color:
        #464d58;

    background:
        #272b32;

    color:
        #b7bdc7;
}

:root[data-theme="dark"]
.admin-login-link:hover {
    border-color:
        #4a5260;

    background:
        #2d3138;

    color:
        #ffffff;
}

:root[data-theme="dark"]
.login-legal-links {
    color:
        #79818e;
}

:root[data-theme="dark"]
.login-legal-links a:hover {
    color:
        #d8dce3;
}


/* ============================================================
   ROOT APP
   ============================================================ */

:root[data-theme="dark"] .app-layout {
    background:
        #17191d;
}

:root[data-theme="dark"] .sidebar {
    border-right-color:
        #292f38;

    background:
        #1d2025;
}

:root[data-theme="dark"] .sidebar-brand,
:root[data-theme="dark"] .user-name {
    color:
        #f4f4f5;
}

:root[data-theme="dark"] .sidebar-info,
:root[data-theme="dark"] .sidebar-bottom {
    border-color:
        #292f38;
}

:root[data-theme="dark"] .nav-button {
    color:
        #abb2be;
}

:root[data-theme="dark"] .nav-button:hover {
    background:
        #292d34;

    color:
        #ffffff;
}

:root[data-theme="dark"] .content {
    background:
        #17191d;
}

:root[data-theme="dark"] .page-header h1,
:root[data-theme="dark"] .section-header h2 {
    color:
        #f4f4f5;
}


/* ============================================================
   ROOT APP CARDS
   ============================================================ */

:root[data-theme="dark"] .shop-card,
:root[data-theme="dark"] .loading-card,
:root[data-theme="dark"] .empty-card {
    border-color:
        #3b414a;

    background:
        #22252b;

    color:
        #f4f4f5;
}

:root[data-theme="dark"] .shop-card:hover {
    border-color:
        #444c59;

    background:
        #272b32;

    box-shadow:
        0
        14px
        34px
        rgba(
            0,
            0,
            0,
            0.20
        );
}

:root[data-theme="dark"] .shop-card h3,
:root[data-theme="dark"] .empty-card strong {
    color:
        #f4f4f5;
}

:root[data-theme="dark"] .organization-name,
:root[data-theme="dark"] .shop-meta,
:root[data-theme="dark"] .empty-card p {
    color:
        #959daa;
}

:root[data-theme="dark"] .status {
    background:
        #22272f;

    color:
        #afb6c1;
}

:root[data-theme="dark"] .status.active {
    background:
        rgba(
            16,
            185,
            129,
            0.13
        );

    color:
        #4ade9b;
}


/* ============================================================
   SECONDARY BUTTONS
   ============================================================ */

:root[data-theme="dark"] .secondary-button {
    border-color:
        #464d58;

    background:
        #252930;

    color:
        #c8cdd5;
}

:root[data-theme="dark"]
.secondary-button:hover {
    border-color:
        #48505c;

    background:
        #2e333b;

    color:
        #ffffff;
}


/* ============================================================
   THEME CONTROL PLACEMENT
   ============================================================ */

.app-theme-floating {
    position:
        absolute;

    top:
        38px;

    right:
        38px;

    z-index:
        5;
}

.sidebar-theme-slot {
    margin:
        auto
        8px
        18px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (
    max-width: 780px
) {

    .app-theme-floating {
        top:
            20px;

        right:
            20px;
    }

}


@media (
    max-width: 560px
) {

    .app-theme-floating {
        top:
            16px;

        right:
            16px;
    }

}


/* ============================================================
   SCROLLBAR
   ============================================================ */

:root[data-theme="dark"] {
    scrollbar-color:
        #414752
        #17191d;
}
