/*
 * Copyright (c) 2026 Besnovatyj. Licensed under the MIT License.
 */

.simple-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    width: calc(100% - 40px);
}

.simple-alert {
    position: relative;
    padding: 12px 14px;
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transform: translateX(110%);
    animation: adm-slideIn 0.25s ease forwards;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    font-size: .9rem;
    line-height: 1.4;
}

.simple-alert.hide {
    animation: adm-slideOut 0.25s ease forwards;
}

/* Bootstrap-совместимые цвета */
.simple-alert.success   { background: #198754; }
.simple-alert.error     { background: #dc3545; }
.simple-alert.warning   { background: #fd7e14; }
.simple-alert.info      { background: #0d6efd; }
.simple-alert.primary   { background: #0d6efd; }
.simple-alert.secondary { background: #6c757d; }
.simple-alert.dark      { background: #212529; }
.simple-alert.light     { background: #f8f9fa; color: #212529; }
.simple-alert.light .simple-alert-close-btn { color: #212529; }

/* Bootstrap Icons иконка */
.simple-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.simple-alert-message {
    flex: 1;
    word-break: break-word;
}

.simple-alert-close-btn {
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .75);
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    margin-top: 2px;
    transition: color 0.1s;
}

.simple-alert-close-btn:hover {
    color: #fff;
}

@keyframes adm-slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes adm-slideOut {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}
