/*--------------------------------------------------------------
# Custom Dialog Layer (Alert & Confirm)
--------------------------------------------------------------*/
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dialog-overlay.show {
    opacity: 1;
}

.dialog-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.dialog-overlay.show .dialog-box {
    transform: scale(1);
}

.dialog-content {
    padding: 36px 20px;
    text-align: center;
    box-sizing: border-box;
}

.dialog-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    word-break: break-word;
    margin: 0;
    white-space: pre-wrap;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 30px;
    justify-content: center;
    box-sizing: border-box;
}

.dialog-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.dialog-btn-primary {
    background-color: #3498db;
    color: #fff;
}

.dialog-btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.dialog-btn-secondary {
    background-color: #ecf0f1;
    color: #444;
}

.dialog-btn-secondary:hover {
    background-color: #d5dbdb;
    transform: translateY(-1px);
}

.dialog-btn:active {
    transform: translateY(0);
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
    .dialog-box {
        max-width: 90%;
        width: 90%;
    }
    
    .dialog-content {
        padding: 30px 16px;
    }
    
    .dialog-message {
        font-size: 0.9rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
        padding: 0 16px 24px;
        gap: 8px;
    }
    
    .dialog-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

