/* Alertify Custom Theme - BluControl */

/* Backdrop Blur */
.ajs-modal {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Dialog Container */
.alertify {
    z-index: 9999;
}

.ajs-dialog {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Header */
.ajs-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    padding: 16px 24px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Content */
.ajs-content {
    padding: 24px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Footer & Buttons */
.ajs-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 16px !important;
}

.ajs-primary.ajs-buttons {
    padding: 8px !important;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ajs-button {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* OK / Confirm Button */
.ajs-button.ajs-ok {
    background-color: #0b1b34 !important;
    /* Color will be overridden by layout if needed */
    color: #ffffff !important;
}

.ajs-button.ajs-ok:hover {
    background-color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Cancel / Secondary Button */
.ajs-button.ajs-cancel {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

.ajs-button.ajs-cancel:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Toasts / Notifications */
.alertify-notifier .ajs-message {
    border-radius: 4px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alertify-notifier .ajs-message.ajs-success {
    background: rgba(34, 197, 94, 0.9) !important;
}

.alertify-notifier .ajs-message.ajs-error {
    background: rgba(239, 68, 68, 0.9) !important;
}

.alertify-notifier .ajs-message.ajs-warning {
    background: rgba(245, 158, 11, 0.9) !important;
    color: #000 !important;
}

/* Animation */
.ajs-message.ajs-visible {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
