/* ===== СТИЛЬ ДЛЯ ALERT ===== */
.alert-custom {
    width: 380px;
    padding: 0;
    border: 2px solid #dc3545;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-header {
    background-color: white;
    color: #000;
    padding: 12px 16px;
    border-bottom: 2px solid #0d6efd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.alert-body {
    background-color: #f8f9fa;
    color: #495057;
    padding: 14px 16px;
    font-size: 13.5px;
    border-top: none;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.alert-close:hover {
    color: #000;
}

/* Анімація для хрестика */
.alert-close::before {
    content: '×';
    font-weight: bold;
}

/* Фіксована позиція з анімацією */
.alert-fixed {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Для темної теми */
[data-bs-theme="dark"] .alert-header {
    background-color: #2b3035;
    color: #e9ecef;
}

[data-bs-theme="dark"] .alert-body {
    background-color: #343a40;
    color: #adb5bd;
}

[data-bs-theme="dark"] .alert-close {
    color: #adb5bd;
}

[data-bs-theme="dark"] .alert-close:hover {
    color: #fff;
}