/* assets/css/smartb-alerts.css - Light & Vibrant Shadcn Eye-Level Toast Alert Styling */

/* === GLOBAL TOAST CONTAINER (EYE-LEVEL TOP-CENTER) === */
.smartb-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    width: calc(100% - 32px);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Individual Toast Item */
.smartb-alert-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
    animation: smartbSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.smartb-alert-item.hiding {
    animation: smartbSlideUpFade 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes smartbSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smartbSlideUpFade {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-14px) scale(0.96);
    }
}

/* --- LIGHTER & VIBRANT VARIANT COLORS (AS REQUESTED) --- */

/* Success (Lighter Emerald Green) */
.smartb-alert-item.success {
    background: #059669;
    border: 1.5px solid #34D399;
    color: #FFFFFF;
}
.smartb-alert-item.success .smartb-alert-icon {
    color: #A7F3D0;
}

/* Primary (Lighter Royal Blue) */
.smartb-alert-item.primary {
    background: #2563EB;
    border: 1.5px solid #60A5FA;
    color: #FFFFFF;
}
.smartb-alert-item.primary .smartb-alert-icon {
    color: #BFDBFE;
}

/* Destructive / Error (Lighter Bright Red) */
.smartb-alert-item.destructive,
.smartb-alert-item.error {
    background: #DC2626;
    border: 1.5px solid #FCA5A5;
    color: #FFFFFF;
}
.smartb-alert-item.destructive .smartb-alert-icon,
.smartb-alert-item.error .smartb-alert-icon {
    color: #FECACA;
}

/* Info (Lighter Vibrant Violet/Purple) */
.smartb-alert-item.info {
    background: #7C3AED;
    border: 1.5px solid #C084FC;
    color: #FFFFFF;
}
.smartb-alert-item.info .smartb-alert-icon {
    color: #E9D5FF;
}

/* Warning (Lighter Amber/Gold) */
.smartb-alert-item.warning {
    background: #D97706;
    border: 1.5px solid #FDE047;
    color: #FFFFFF;
}
.smartb-alert-item.warning .smartb-alert-icon {
    color: #FEF08A;
}

/* Secondary / Default / Mono (Lighter Slate) */
.smartb-alert-item.secondary,
.smartb-alert-item.default,
.smartb-alert-item.mono {
    background: #3F3F46;
    border: 1.5px solid #71717A;
    color: #FFFFFF;
}
.smartb-alert-item.secondary .smartb-alert-icon,
.smartb-alert-item.default .smartb-alert-icon,
.smartb-alert-item.mono .smartb-alert-icon {
    color: #F4F4F5;
}

/* Left Icon & Text Body */
.smartb-alert-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.smartb-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    shrink: 0;
}

.smartb-alert-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* Right Close Button (X) */
.smartb-alert-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    shrink: 0;
}

.smartb-alert-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
}

/* ABSOLUTELY HIDE IN-PAGE BANNERS */
.alert-processed,
.admin-content > .alert {
    display: none !important;
}

/* === DARK SHADCN CONFIRMATION MODAL === */
.smartb-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.smartb-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.smartb-confirm-card {
    background: #18181B;
    border: 1px solid #27272A;
    color: #FAFAFA;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.smartb-confirm-overlay.active .smartb-confirm-card {
    transform: scale(1) translateY(0);
}

.smartb-confirm-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.smartb-confirm-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    shrink: 0;
}

.smartb-confirm-icon-box.destructive {
    background: #DC2626;
    color: #FFFFFF;
    border: 1px solid #FCA5A5;
}
.smartb-confirm-icon-box.warning {
    background: #D97706;
    color: #FFFFFF;
    border: 1px solid #FDE047;
}
.smartb-confirm-icon-box.primary {
    background: #2563EB;
    color: #FFFFFF;
    border: 1px solid #60A5FA;
}

.smartb-confirm-title {
    font-size: 16px;
    font-weight: 700;
    color: #FAFAFA;
    margin: 0 0 6px 0;
}

.smartb-confirm-desc {
    font-size: 14px;
    color: #A1A1AA;
    margin: 0;
    line-height: 1.5;
}

.smartb-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.smartb-confirm-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.smartb-confirm-btn-cancel {
    background: #27272A;
    color: #E4E4E7;
    border: 1px solid #3F3F46;
}
.smartb-confirm-btn-cancel:hover {
    background: #3F3F46;
    color: #FFFFFF;
}

.smartb-confirm-btn-ok-destructive {
    background: #DC2626;
    color: #FFFFFF;
}
.smartb-confirm-btn-ok-destructive:hover {
    background: #B91C1C;
}

.smartb-confirm-btn-ok-primary {
    background: #2563EB;
    color: #FFFFFF;
}
.smartb-confirm-btn-ok-primary:hover {
    background: #1D4ED8;
}
