/* details-dialog.css */

:disabled+br {
    display: none;
}

[hidden]+br {
    display: none;
}

details {
    margin: 12px 0;
}

details summary {
    cursor: pointer;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--theme-button-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: all 0.2s ease;
}

details summary:hover {
    background: var(--accent-hover);
}

details[open]>summary::before {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    cursor: default;
    content: " ";
    z-index: 99;
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(4px);
}

details>fieldset {
    left: 50%;
    margin: 10vh auto;
    max-height: 80vh;
    max-width: 90vw;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: 460px;
    z-index: 999;
    animation: dialog-fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--theme-font-color);
    border: 1px solid var(--theme-border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 12px;
    font-size: 1rem;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    overflow-y: auto;
}

details>fieldset::-webkit-scrollbar {
    display: none;
}

@keyframes dialog-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

details summary::-webkit-details-marker {
    display: none;
}