/* =============================================================================
   SEEDFINITY NETWORK - Base Styles
   =============================================================================
   Bootstrap-Utilities wurden nach sf.css migriert.
   Diese Datei enthält nur noch Seedfinity-spezifische Backend-Styles.
   Migriert am: 2026-02-06T01:40:12.531Z
   ============================================================================= */

/* HIER ALLE STYLES SEEDFINITY BETREFFEND EINBINDEN

 todo
  - core Bootstrap funktionen einfügen
  - account badge & dropdown machen
  - reset

 */

:root {
    --header-height: 60px;
    --footer-height: 36px;
}

html {
    overflow-x: clip;
    overflow-y: auto;
    scroll-behavior: smooth;
}

html,
body {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    position: absolute;
}

body {
    background-image:
        radial-gradient(65vw 50vw at 19% 13%, rgb(66 48 136 / 14%), transparent 55%),
        radial-gradient(90vw 40vw at 90% 100%, rgba(51, 214, 255, 0.04), transparent 55%),
        linear-gradient(180deg, var(--bg0), var(--bg1)),
        linear-gradient(180deg, rgba(7, 10, 16, .85), rgba(10, 16, 32, .92))
}

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


main {
    min-height: calc(100vh - var(--footer-height));
    padding-top: calc(var(--header-height) + (var(--gutter-x) * 0.5));
    width: 100vw;
    opacity: 0.01;
    transition: opacity 1.3s ease-in;
    position: relative;
    z-index: 0;
}

body.core-ready main {
    opacity: 1;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Layout Grid Overrides for Backend
   ───────────────────────────────────────────────────────────────────────────── */

.sfb-container-xxl,
.sfb-container-xl,
.sfb-container-lg,
.sfb-container,
.sfb-container-fluid {
    padding-top: var(--sfb-spacing-md);
    padding-bottom: var(--sfb-spacing-md);
}

/* Sidebar Column - Sticky behavior */
.sfb-col-lg-3:has(.sidebar) {
    position: sticky;
    top: calc(var(--header-height) + var(--sfb-spacing-md));
    align-self: flex-start;
    height: fit-content;
}


/* ─────────────────────────────────────────────────────────────────────────────
   Sidebar - Card-Style only (Layout via Grid)
   ───────────────────────────────────────────────────────────────────────────── */

.sidebar {
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.sidebar__section {
    padding: 16px;
}

.sidebar__heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px;
}


#toggle-docs-nav {
    margin-bottom: 1rem;
}

.sidebar__section {

    .sidebar__scroller {
        max-height: calc(100vh - var(--header-height) - 146px);
        overflow: auto;
        overflow-x: clip;
        padding-bottom: 1rem;
    }

    /* Scroller hat KEINE has-children items */
    .sidebar__scroller:not(:has(.sidebar__nav-item.has-children)) .sidebar__nav-item>.sidebar__nav-row>.sidebar__link {
        padding-left: 0.6rem;
    }

    .sidebar__index-list,
    .sidebar__nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 2px;
    }

    .sidebar__nav {
        padding-right: 0.5rem;
    }

    .sidebar__nav--level-0 {
        padding-right: 1rem;
    }

    .sidebar__index-link,
    .sidebar__link {
        display: block;
        padding: 8px 10px 8px 0;
        border-radius: var(--radius-sm);
        font-size: 13px;
        color: var(--text-muted);
        text-decoration: none;
        position: relative;
        transition: background var(--transition-fast), color var(--transition-fast), transform 100ms ease-out;
        text-wrap-style: balance;
        width: 100%;
    }

    .sidebar__index-sublist {

        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 2px;
        padding-left: 1rem;

        .sidebar__index-link,
        .sidebar__link {
            padding: 8px 10px 8px 0;
        }
    }

    .sidebar__nav-item.is-open {
        /* border-top: solid 1px rgba(255,255,255,0.1); */
        /* border-bottom: solid 1px rgba(255,255,255,0.1); */
        background: rgba(154, 158, 227, 0.03);
    }


    .sidebar__nav-row:not(.active):hover

    /*,
    .sidebar__index-link:hover,
    .sidebar__link:hover */
        {
        background: rgba(148, 163, 184, 0.15) !important;
    }

    .sidebar__nav-item.is-open>.sidebar__nav-row:not(.active) {

        background: rgba(154, 158, 227, 0.03);
    }

    .sidebar__nav-row.active

    /*,
    .sidebar__index-link.active,
    .sidebar__link.active */
        {
        color: var(--sfb-color-text-on-primary);
        font-weight: 500;
        background: var(--primary);
    }

    .sidebar__nav-row.active a {
        color: var(--sfb-color-text-on-primary);
    }

    /* Header row + actions */
    .sidebar__heading-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .sidebar__nav-actions {
        display: flex;
        gap: 6px;
    }

    .sidebar__nav-btn {
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        opacity: .75;
    }

    .sidebar__nav-btn:hover {
        opacity: 1;
        background: rgba(255, 255, 255, .06);
    }


    .sidebar__nav-item {
        margin: 0;
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .sidebar__nav-row {
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background var(--transition-fast), color var(--transition-fast), transform 100ms ease-out;
    }

    /* Toggle button */
    .sidebar__toggle {
        display: inline-flex;
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 0;
        border-radius: 8px;
        opacity: .75;
        font-size: 12px;
    }

    .sidebar__toggle:empty {
        cursor: default;
    }

    .sidebar__toggle:not(:empty):hover {
        opacity: 1;
        /* background:rgba(255,255,255,.06);*/
    }

    .sidebar__toggle.spacer {
        display: inline-block;
        width: 26px;
        height: 26px;
    }

    /* caret animation */
    .sidebar__toggle i {
        transition: transform .15s ease;
        color: var(--primary);
    }

    .sidebar__nav-row.active .sidebar__toggle i {
        color: var(--sfb-color-text-on-primary);
    }

    .sidebar__nav-item.is-open>.sidebar__nav-row .sidebar__toggle i {
        transform: rotate(90deg);
    }

    /* submenu */
    .sidebar__submenu {
        display: none;
        padding-left: 0.5rem;
        /* indent per level */
    }

    .sidebar__nav-item.is-open>.sidebar__submenu {
        display: block;
    }

    /* active link (falls du schon styles hast, kannst du das weglassen) */
    .sidebar__link.active {
        font-weight: 600;
    }

    /* Placeholder for has-active-child.is-open styling */
    .sidebar__nav-item.has-active-child:not(.is-open)>.sidebar__nav-row {
        background: rgba(154, 158, 227, 0.06);
    }

}






/* Grid */
.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

/* Responsiveness */
@media (min-width: 880px) {

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

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



/* Main */
.main-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Sections */
section,
.section {
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at 100% 100%, rgb(1 1 2 / 95%), #000000), #000002;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 24px 18px 24px;
    position: relative;
    overflow: hidden;
}

.section:has(~ .section) {
    margin-bottom: 2rem;
}

:root[data-theme="light"] section,
:root[data-theme="light"] .section {
    background: radial-gradient(circle at 100% 100%, rgb(1 1 2 / 95%), #000000), #000002;
    border-color: rgb(143 143 143 / 50%);
}

/* Dekorative Ecke */
section::before,
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% -30%,
            rgba(59, 130, 246, 0.06),
            transparent 55%);
    pointer-events: none;
}

/* Inhalt soll über Overlay liegen */
section>* .section>* {
    position: relative;
}

/* Section Header */
.section__header {
    margin-bottom: 16px;
}



.section__lead {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 60ch;
}

.section__subheading {
    margin: 16px 0 8px;
    font-size: 16px;
}



/* Card Styling */
.card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    background: radial-gradient(circle at 0% 0%, rgba(18, 18, 35, 0.5), rgba(0, 0, 0, 0.5)), rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card-2 {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .18);
    border: 1px dashed rgba(255, 255, 255, .12);
}

:root[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.9);
}




/* Responsiveness */
@media (min-width: 880px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 24px;
    }

    .layout:has(.sidebar) {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        align-self: flex-start;
    }

    section,
    .section {
        padding: 26px 22px 26px;
    }
}







a {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

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



.nav-link-default {
    color: var(--sfb-white);
}

.nav-link-default:hover {
    color: var(--sfb-white);
}

/*
.nav-link-sub {
    color: #939393;
    padding-left: 0.6rem !important;
}
.nav-link-sub:hover {
    color: #939393;
}

 */

.nav-link-danger {
    color: var(--sfb-color-danger);
}

.nav-link-danger:hover {
    color: var(--sfb-color-danger);
}


/* Input und Select Styling für einheitlichen Look */

input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select {
    height: 36px;
    line-height: 36px;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
    padding: 0 1rem;
    font-size: 1rem;

    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-sm);
    color: var(--sfb-white);

    text-align: left;

    outline: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

/* Native select dropdown styling - Dark Mode */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 2.5rem;
}

option {
    background-color: var(--sfb-gray-800);
    color: var(--sfb-color-text-base);
    padding: 8px 12px;
}

option:hover,
option:focus,
option:checked {
    background-color: var(--sfb-color-primary);
    color: var(--sfb-white);
}

option:disabled {
    color: var(--sfb-color-text-muted);
    background-color: var(--sfb-gray-800);
}

optgroup {
    background-color: var(--sfb-gray-900);
    color: var(--sfb-color-text-subdued);
    font-weight: 600;
    font-style: normal;
    padding: 4px 0;
}

optgroup option {
    font-weight: 400;
    padding-left: 1.5rem;
}

input[type="search"]:hover,
input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.6);
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(218, 180, 32, 0.4);
}



textarea {
    resize: vertical;
    height: 100px;
}


/* Formular Styles */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.sub-label {
    font-size: 0.85em;
    color: var(--sfb-color-text-muted);
    margin-top: -5px;
    margin-bottom: 8px;
    display: block;
}


.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}






footer .backdrop-outer {
    top: auto;
    bottom: 0;
}



















.site-footer {
    padding: 0.5rem 1.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    position: relative;
    height: var(--footer-height);
    border-top: 1px solid rgba(84, 89, 96, 0.2);
    opacity: 0.01;
    transition: opacity 0.8s ease-in;
}

body.core-ready .site-footer {
    opacity: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-nav .divider {
    opacity: 0.5;
}