/* === UNIFIED ALERTS SYSTEM === */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    animation: alertSlideIn 0.4s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0.05;
    pointer-events: none;
}

/* === ALERT VARIANTS === */
.alert-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #084298;
    border-left-color: #0d6efd;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left-color: #198754;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border-left-color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border-left-color: #ffc107;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left-color: #0dcaf0;
}

.alert-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #41464b;
    border-left-color: #6c757d;
}

.alert-light {
    background: rgba(248, 249, 250, 0.8);
    color: #636464;
    border-left-color: #d3d3d4;
}

.alert-dark {
    background: rgba(33, 37, 41, 0.1);
    color: #141619;
    border-left-color: #212529;
}

/* === ALERT ELEMENTS === */
.alert-heading {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-link {
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.alert-link:hover {
    opacity: 0.8;
}

/* === DISMISSIBLE ALERTS === */
.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

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

/* === ALERT SIZES === */
.alert-sm {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.alert-lg {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* === ALERT ICON === */
.alert-icon {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon .alert-icon-symbol {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* === ALERT WITH LIST === */
.alert-with-list ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert-with-list li {
    margin-bottom: 0.25rem;
}

/* === FLOATING ALERTS === */
.alert-floating {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    z-index: 1080;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    animation: alertFloatIn 0.5s ease-out;
}

@keyframes alertFloatIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === TOAST ALERTS === */
.alert-toast {
    min-width: 300px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    padding: 1rem;
}

/* === PROGRESS ALERTS === */
.alert-progress {
    position: relative;
    overflow: hidden;
}

.alert-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* === COLLAPSIBLE ALERTS === */
.alert-collapsible .alert-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
}

.alert-collapsible .alert-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.alert-collapsible.collapsed .alert-toggle::after {
    transform: rotate(-90deg);
}

.alert-collapsible .alert-content {
    margin-top: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.alert-collapsible.collapsed .alert-content {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

/* === RESPONSIVE ALERTS === */
@media (max-width: 576px) {
    .alert-floating {
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .alert-dismissible {
        padding-right: 2.5rem;
    }
    
    .alert-dismissible .btn-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}