/* === ALERT DIALOG SYSTEM - ComDocs Style === */

/* Backdrop - Sfondo semi-trasparente */
.alert-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dialog Box - Container principale - stile ComDocs */
.alert-dialog-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    width: 65%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: alertPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Animazione ComDocs style */
@keyframes alertPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Icon Container - Contenitore icona centrato */
.alert-dialog-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-dialog-icon {
    font-size: 3.5rem !important;
    line-height: 1;
    margin-top: 10px;
}

/* Content - Titolo e messaggio - stile ComDocs */
.alert-dialog-content {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.alert-dialog-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

.alert-dialog-message {
    margin: 0;
    font-size: 1rem;
    color: var(--combine-blu);
    line-height: 1.5;
}

/* Buttons Container - stile ComDocs */
.alert-dialog-buttons {
    background: #f4f7f9;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Base Style - stile ComDocs */
.alert-dialog-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
        font-size: 1rem;

    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.alert-dialog-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.alert-dialog-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Primary - Bottone principale (blu accent) */
.alert-dialog-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.alert-dialog-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Button Secondary - Bottone secondario (grigio chiaro) */
.alert-dialog-btn-secondary {
    background: #f4f7f9;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.alert-dialog-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

/* Button Danger - Bottone per azioni pericolose (rosso) */
.alert-dialog-btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.alert-dialog-btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Button Success - Bottone di conferma (verde) */
.alert-dialog-btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.alert-dialog-btn-success:hover {
    background: #218838;
    border-color: #218838;
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .alert-dialog-box {
        min-width: 280px;
        padding: 20px;
        gap: 16px;
    }

    .alert-dialog-icon {
        font-size: 52px !important;
    }

    .alert-dialog-title {
        font-size: 19px;
    }

    .alert-dialog-message {
        font-size: 14px;
    }

    .alert-dialog-buttons {
        flex-direction: column;
    }

    .alert-dialog-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Accessibility - Focus state */
.alert-dialog-btn:focus {
    outline: 3px solid rgba(85, 140, 201, 0.5);
    outline-offset: 2px;
}

.alert-dialog-btn-danger:focus {
    outline-color: rgba(244, 67, 54, 0.5);
}

/* Prevent body scroll when dialog is open */
body.alert-dialog-open {
    overflow: hidden;
}
