/* Alerts and Notifications Styling */
:root {
    --bb-alert-bg: #ffffff;
    --bb-alert-text: #333333;
    --bb-alert-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --bb-success: #10b981;
    --bb-error: #ef4444;
    --bb-warning: #f59e0b;
    --bb-info: #3b82f6;
    --bb-confirm: #6366f1;
}

.bb-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bb-alert-backdrop.active {
    opacity: 1;
}

.bb-alert-container {
    background: var(--bb-alert-bg);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--bb-alert-shadow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bb-alert-backdrop.active .bb-alert-container {
    transform: scale(1);
}

.bb-alert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bb-alert-icon svg {
    width: 32px;
    height: 32px;
}

.bb-alert-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--bb-alert-text);
}

.bb-alert-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.bb-alert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.bb-alert-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.bb-alert-btn-primary {
    background: var(--bb-confirm);
    color: white;
}

.bb-alert-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.bb-alert-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.bb-alert-btn-secondary:hover {
    background: #e5e7eb;
}

/* Toast Styling */
.bb-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bb-toast {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--bb-info);
}

.bb-toast.active {
    transform: translateX(0);
}

.bb-toast-success { border-left-color: var(--bb-success); }
.bb-toast-error { border-left-color: var(--bb-error); }
.bb-toast-warning { border-left-color: var(--bb-warning); }

.bb-toast-content {
    flex: 1;
}

.bb-toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
}

.bb-toast-message {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0 0 0;
}

.bb-toast-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.bb-toast-close:hover {
    opacity: 1;
}
