/* Dialog and Overlay Styles */

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--main-color);
    animation: spin 1s linear infinite;
    z-index: 1003;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

#dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    width: 90%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.dialog-content {
    padding: 30px;
    text-align: center;
}

.dialog-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--main-color);
}

.dialog-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-black);
}

.dialog-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--color-black);
}

.close-dialog {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-dialog:hover {
    transform: scale(1.1);
}

.icon-close-dialog {
    width: 20px;
    height: 20px;
    fill: var(--color-black);
}