/* ===============================================
   Alerts & Notifications
   =============================================== */

#alerts-container {
    margin-bottom: 20px;
}

.alert {
    background: var(--white);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border-right: 4px solid;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-danger {
    border-right-color: var(--danger);
    background: #ffebee;
}

.alert-warning {
    border-right-color: var(--warning);
    background: #fff8e1;
}

.alert-success {
    border-right-color: var(--success);
    background: #e8f5e9;
}

.alert-info {
    border-right-color: var(--primary-blue);
    background: #e3f2fd;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert-header i {
    font-size: 18px;
}

.alert-danger .alert-header {
    color: var(--danger);
}

.alert-warning .alert-header {
    color: var(--warning);
}

.alert-success .alert-header {
    color: var(--success);
}

.alert-info .alert-header {
    color: var(--primary-blue);
}

.alert-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    margin-right: auto;
    border-radius: 4px;
    transition: all 0.2s;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.alert-body {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

.alert-body > div {
    padding: 3px 0;
}

/* Alert Badge in Header */
.alert-badge {
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Alert Button in Header */
.btn-alerts {
    position: relative;
}

.btn-alerts .alert-badge {
    position: absolute;
    top: -5px;
    left: -5px;
}
