.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Estilos base para diálogos */
.dialog,
.dialog-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    /* max-width: 500px; */
    z-index: 1001;
    background-color: #fff;
}

/* Header de diálogos */
.dialog-header,
.alert-header {
    padding: 1rem;
}

.dialog-header h3,
.alert-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.dialog-content {
    max-height: 70vh;
    overflow-y: auto;
}

/* Contenido de diálogos */
.dialog-content,
.alert-body {
    padding: 1.5rem;
    line-height: 1.5;
}

/* Footer de diálogos */
.dialog-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dialog-alert button {
    width: 100%;
    margin-top: 1rem;
}

/* Notificaciones */
.notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
    z-index: 1002;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.notice h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notice p {
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
}

.notice button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.notice button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.notice button:active {
    transform: translateY(0);
}

/* Tipos de notificaciones */
.notice-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notice-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.notice-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.notice-error {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

/* Animación para las notificaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {

    .dialog,
    .dialog-alert {
        width: 90%;
        margin: 0 auto;
    }

    .notice {
        width: 90%;
        right: 5%;
    }
}