/**
 * MadBot - Alert Styles
 * Success, error, warning, info notifications
 */

/* ==========================================================================
   BASE ALERT
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   ALERT VARIANTS
   ========================================================================== */

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success, #10b981);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger, #ef4444);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning, #f59e0b);
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info, #3b82f6);
}

/* ==========================================================================
   ALERT WITH ICON
   ========================================================================== */

.alert-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon .icon {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-icon .message {
    flex: 1;
}

/* ==========================================================================
   DISMISSIBLE ALERT
   ========================================================================== */

.alert-dismissible {
    position: relative;
    padding-right: 40px;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    transition: opacity var(--transition-normal);
}

.alert-close:hover {
    opacity: 1;
}

/* ==========================================================================
   ACCESS DENIED MESSAGE
   ========================================================================== */

.access-denied {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.access-denied a {
    color: var(--primary);
    text-decoration: none;
}

.access-denied a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.madbot-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.madbot-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.madbot-toast svg {
    flex-shrink: 0;
}

.madbot-toast-success {
    border-color: rgba(34, 197, 94, 0.3);
}

.madbot-toast-success svg {
    color: #22c55e;
}

.madbot-toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.madbot-toast-error svg {
    color: #ef4444;
}

.madbot-toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.madbot-toast-warning svg {
    color: #f59e0b;
}

.madbot-toast-info {
    border-color: rgba(99, 102, 241, 0.3);
}

.madbot-toast-info svg {
    color: #6366f1;
}

/* Light mode toast */
.light-mode .madbot-toast {
    background: #fff;
    border-color: #e2e8f0;
    color: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}