/**
 * Floating Alerts Component CSS
 * Styles for the floating alerts notification system
 */

#floating-alerts-container {
    position: fixed;
    top: 80px; /* Move down a bit to avoid header overlap */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
    max-width: 700px;
    width: 90%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-alert {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-radius: 8px;
    padding: 15px 20px;
    font-weight: 500;
    width: 100%;
    opacity: 0.98;
    z-index: 10000000 !important;
    /* Animation */
    animation: floatingAlertSlideIn 0.5s ease forwards;
}

/* Animation for alert appearance */
@keyframes floatingAlertSlideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 0.98;
    }
}

.floating-alert.fade {
    transition: opacity 0.3s, transform 0.4s;
}

.floating-alert.fade.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.floating-alert .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 1rem;
    height: 1rem;
    padding: 0.25rem;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
}

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

/* SVG icon colors */
.svg-success {
    color: rgb(var(--success-rgb));
}

.svg-warning {
    color: rgb(var(--warning-rgb));
}

.svg-danger {
    color: rgb(var(--danger-rgb));
}

.svg-info {
    color: rgb(var(--info-rgb));
}

.svg-primary {
    color: rgb(var(--primary-rgb));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #floating-alerts-container {
        left: 0;
        right: 0;
        width: 95%;
        max-width: 95%;
        margin: 0 auto;
    }
} 