.QuickSettingsBox {
    border: 2px solid #333;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    z-index: 200;
    overflow: hidden;
    transform: none;
    transition:
        width 0.5s ease,
        height 0.5s ease,
        background-color 0.5s ease,
        border-radius 0.5s ease;
}

.QuickSettingsBox.active {
    border-radius: 8px;
    width: 280px;
    max-width: 85%;
    height: auto;
    max-height: 85vh;
}


.QuickSettingsLogo {
    border: 0px solid #333;
    background-color: #a7a7a763;
    padding: 3px;
    margin: 3px;
    border-radius: 100%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        width 0.5s ease,
        height 0.5s ease,
        border-radius 0.5s ease,
        padding 0.5s ease,
        margin 0.5s ease;
}

.QuickSettingsBox.active .QuickSettingsLogo {
    border-radius: 8px;
    width: calc(100% - 12px);
    height: auto;
    padding: 10px;
    margin: 6px;
    flex-direction: column;
    max-height: calc(85vh - 24px);
    overflow-y: auto;
}

.QuickSettingsBox:not(.active) .QuickSettingsLogo > *:not(svg) {
    display: none;
}

.QuickSettingsContent {
    width: 100%;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    padding-top: 10px;
}

.QuickSettingsContent::-webkit-scrollbar {
    width: 4px;
}

.QuickSettingsContent::-webkit-scrollbar-track {
    background: transparent;
}

.QuickSettingsContent::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.qs-btn {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--trbg);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.qs-btn:hover {
    background: var(--btn-hover);
}

.qs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.qs-label {
    font-size: 12px;
    color: var(--text);
    flex: 1;
}

.qs-row.clickable {
    cursor: pointer;
}

.qs-row.clickable:hover {
    background: rgba(0, 0, 0, 0.1);
}

.QuickSettingsContent h4 {
    font-size: 13px;
    color: var(--text);
    margin: 8px 0 4px 0;
    padding: 0;
}

.QuickSettingsContent hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.QuickSettingsContent input[type="text"],
.QuickSettingsContent input[type="file"] {
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-size: 11px;
}

.QuickSettingsContent input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.QuickSettingsContent input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--main);
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.toggleable-card.card-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: scaleY(0.9);
    transform-origin: top;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease,
        padding 0.3s ease,
        margin 0.3s ease;
}

.toggleable-card {
    max-height: 1000px;
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    pointer-events: none;
}

.bg-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
