/* Dialog Component Styles - Global */

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--secondary-color-w-opacity);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay[data-dialog-state='open'] {
    opacity: 1;
    visibility: visible;
}

.dialog-container {
    position: relative;
    max-width: 98%;
    max-height: 98%;
    width: 75%;
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: auto;
}

.dialog-overlay[data-dialog-state='open'] .dialog-container {
    transform: scale(1);
}

.dialog-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 48px;
    height: 48px;
    border: none;
    background-color: var(--secondary-color-w-opacity);
    backdrop-filter: blur(5px);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
}

.dialog-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(0.95);
}

.dialog-close:active {
    transform: rotate(90deg) scale(0.95);
}

.dialog-close svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.dialog-content {
    width: 100%;
    height: fit-content;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .dialog-container {
        width: 100%;
    }

    .dialog-close {
        width: 40px;
        height: 40px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .dialog-close svg {
        width: 20px;
        height: 20px;
    }
}
