:root {
    --primary: #ffffff;
    --primary_30percent: #ffffff4c;
    --secondary: #cda174;
    --secondary_30percent: #cda1744c;
    --background: #171719;
    --background_60percent: #17171999;
    --accent: #a27c26;
    --muted: #777777;
    --warning-background: #ff00000d;
    --main-font-family: Oxygen, sans-serif;
    --carousel-min-h: clamp(320px, 40vh, 600px);
}

html, body {
    background-color: var(--background);
    background-image: url('/Themes/KK.Exposi.Theme/wave.webp');
    background-position: bottom center;
    background-repeat: repeat-x;
    color: var(--primary);
    font-family: var(--main-font-family);
    padding-top: 1rem;
    background-attachment: fixed; 
    background-size: contain;
}

    body:has(nav) {
        padding-top: 7rem;
    }


.q-busy-container {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
    color: var(--secondary);
}

.q-busy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(23, 23, 25, 0.99);
    z-index: 9999;
    pointer-events: all;
}

.q-busy-progress {
    width: 100%;
    max-width: 30vw;
    margin: 0 auto;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary_30percent);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5) inset;
}

.q-busy-progress-bar {
    height: 100%;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.q-busy-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--secondary);
    border-top: 4px solid transparent;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    animation: q-spin-translated 0.8s linear infinite;
}

.q-busy-text {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.q-button {
    padding: 10px 20px;
    border: 1px solid var(--secondary);
    background: linear-gradient(to right, var(--secondary) 33.33%, transparent 33.33%);
    color: var(--primary);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    height: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.q-button--outlined {
    background: transparent;
    color: var(--primary);
}

    .q-button--outlined:hover,
    .q-button--outlined:focus {
        background: var(--secondary);
        color: var(--primary);
    }

    .q-button--outlined:disabled,
    .q-button--outlined[disabled] {
        background: transparent;
        color: var(--secondary_30percent);
        border-color: var(--secondary_30percent);
    }

.q-button--secondary {
    background: var(--secondary);
}

    .q-button--secondary:hover,
    .q-button--secondary:focus {
        background: var(--accent);
    }

    .q-button--secondary:disabled,
    .q-button--secondary[disabled] {
        background: var(--secondary);
        color: var(--primary);
        border-color: var(--secondary);
    }

.q-button--submit--container {
    display: flex;
    justify-content: end;
    padding-top: 1rem;
}

.q-button__inner-text {
    position: relative;
    z-index: 1;
}

.q-button:hover,
.q-button:focus {
    background: var(--secondary);
}

.q-button:disabled,
.q-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.q-command {
    background-color: transparent;
    border-color: transparent;
    display: inline-flex;
    align-items: stretch;
    gap: 1rem;
}

    .q-command .q-button {
        background-color: var(--background);
        color: var(--secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 220px;
        padding: 1rem 1.25rem;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
        font-size: 1rem;
    }

        .q-command .q-button:hover {
            background-color: var(--secondary);
            color: var(--primary)
        }

    .q-command .q-previous-step {
        background-color: transparent;
        color: var(--primary);
        opacity: 0.45;
        border-color: var(--primary_30percent);
    }

        .q-command .q-previous-step:hover {
            background-color: transparent;
            opacity: 1;
        }

    .q-command[disabled] .q-button {
        pointer-events: none;
        opacity: 0.5;
        cursor: not-allowed;
        text-decoration: none;
    }

.q-empty {
    display: none;
}

.q-entity-repository--entity-image {
    max-height: 48px;
}

.q-entity-repository--pager {
    flex: 0 0 65%;
    min-height: 0;
    overflow: auto;
    margin-bottom: 2rem;
}

    .q-entity-repository--pager td {
        padding: 2px 5px;
    }

    .q-entity-repository--pager tr:has(.q-entity-row--selected) {
        background-color: var(--primary_30percent);
    }

.q-entity-repository--td {
    cursor: pointer;
}

.q-entity-repository--td--fill {
    width: 100%;
}

.q-entity-repository--td-hidden {
    width: 1px;
}

.q-entity-repository--th-hidden {
    width: 1px;
}

.q-entity-repository--th-sortable {
    text-decoration: underline;
}

.q-entity-repository-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

    .q-entity-repository-content > TabStrip,
    .q-entity-repository-content > .tabstrip,
    .q-entity-repository-content > div[tabstrip] {
        flex: 0 0 35%;
        min-height: 0;
        overflow: auto;
    }

.q-entity-repository-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.q-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--secondary_30percent);
    border-radius: 8px;
    background-color: var(--background);
    padding: .75rem;
    min-width: 180px;
    max-width: 240px;
}

    .q-file-card > .q-button {
        align-self: stretch;
        text-align: center;
    }

.q-file-card__actions {
    width: 100%;
    margin-top: .25rem;
}

    .q-file-card__actions .q-button {
        width: 100%;
    }

.q-file-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.q-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.q-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .q-file-list.q-file-list--sm {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .25rem .75rem;
    }

.q-file-list--sm .q-file-list__item {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    color: var(--primary);
    opacity: .9;
    padding: 0;
}

.q-file-name {
    color: var(--primary);
    font-size: .95rem;
    text-align: center;
    word-break: break-word;
}

.q-file-thumb {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.q-file-thumb--not-img {
    width: 150px;
    height: 150px;
    display: block;
    position: relative;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><circle cx='11' cy='11' r='8' fill='none' stroke='%23fff' stroke-width='1'/><line x1='17' y1='17' x2='22' y2='22' stroke='%23fff' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
    max-width: 150px;
    max-height: 150px;
    transition: box-shadow 0.2s;
    background-color: transparent;
    overflow: hidden;
}

    .q-file-thumb--not-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
        transition: background 0.2s;
        z-index: 0;
    }

.q-file-thumb:hover {
    cursor: pointer;
}

.q-glaze-btn-close {
    background-color: var(--secondary);
    background-image: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: background-color .2s ease, transform .05s ease;
    margin-left: auto;
}

    .q-glaze-btn-close::before {
        content: "×";
        font-size: 1.25rem;
        line-height: 1;
        color: var(--background);
    }

    .q-glaze-btn-close:hover {
        background-color: var(--accent);
    }

    .q-glaze-btn-close:active {
        transform: scale(.96);
    }

    .q-glaze-btn-close:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.q-glaze-card {
    height: 100%;
    outline: none;
    cursor: pointer;
    text-align:center;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .q-glaze-card:focus-visible {
        outline: 2px solid var(--secondary);
        outline-offset: 2px;
    }

    .q-glaze-card:hover {
        transform: scale(1.05);
    }

    .q-glaze-card.selection:hover {
        transform: none;
    }

    .q-glaze-card.selected {
        background-color: var(--secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

        .q-glaze-card.selected:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
        }

.q-glaze-img {
    height: 150px;
}

.q-primary--color {
    color: var(--primary);
}

.q-secondary--color {
    color: var(--secondary);
}

.q-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

    .q-section h1, .q-section h2, .q-summary-container h5, .q-modal-body h5 {
        border-left: .3rem solid var(--secondary);
        padding-left: .8rem;
    }

.q-select {
    display: block;
    width: 100%;
    padding: 10px 40px 10px 15px;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--primary);
    background-color: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .q-select:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: inset 0 1px 1px var(--background), 0 0 8px var(--secondary_30percent);
        color: var(--primary);
        background-color: var(--background);
    }

    .q-select::-ms-expand {
        display: none;
    }

    .q-select option {
        background-color: var(--background);
        color: var(--primary);
    }

        .q-select option:checked,
        .q-select option:active,
        .q-select option:hover {
            background-color: var(--secondary);
            color: var(--primary);
        }




.q-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .q-table td {
        padding: 0.1rem;
        color: var(--primary);
    }

.q-toggle {
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #444;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .q-toggle::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background-color: var(--primary);
        border-radius: 50%;
        transition: transform 0.3s;
    }

.q-toggle-wrapper input[type="checkbox"] {
    display: none;
}

    .q-toggle-wrapper input[type="checkbox"]:checked + .q-toggle::before {
        transform: translateX(26px);
    }

    .q-toggle-wrapper input[type="checkbox"]:checked + .q-toggle {
        background-color: var(--secondary);
    }


.q-uploader-container {
    margin-bottom: 0.5rem;
}

.q-visually-hidden {
    border: 0;
    clip: rect(0,0,0,0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.q-warning {
    background-color: var(--warning-background);
    border-left: 4px solid var(--secondary_30percent);
    color: var(--accent);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .q-select {
        transition: all 0s ease-in-out;
    }
}

@keyframes q-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes q-spin-translated {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
