/**
 * YOOAdmin - Focus mode alert modals
 *
 * @package YOOAdmin
 */

.yp-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.yp-alert-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    z-index: 1;
    animation: alertIn 0.3s ease;
}

@keyframes alertIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.yp-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.yp-alert-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.yp-alert-icon.warning {
    color: #f59e0b;
}

.yp-alert-icon.error {
    color: #ef4444;
}

.yp-alert-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.yp-alert-body {
    padding: 25px;
}

.yp-alert-message {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.yp-alert-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    justify-content: flex-end;
}

.yp-alert-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.yp-alert-btn-primary {
    background: var(--yp-primary, #eda934);
    color: white;
}

.yp-alert-btn-primary:hover {
    background: var(--yp-primary-600, #dba617);
    color: white;
}

.yp-alert-btn-secondary {
    background: white;
    color: var(--yp-text-primary, #4B4B4B);
    border: 1px solid var(--yp-border, #e0e0e0);
}

.yp-alert-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: var(--yp-text-primary, #4B4B4B);
}

body.yp-alert-open {
    overflow: hidden !important;
}
