/* App-wide flash alerts — dashboard 2024 */

.app-flash-alerts {
    margin-bottom: 1.25rem;
}

.app-alert {
    padding: 14px 16px;
    margin-bottom: 0.75rem;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-alert:last-child {
    margin-bottom: 0;
}

.app-alert--dismissible {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-alert__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.app-alert__message {
    flex: 1;
    line-height: 1.55;
    font-weight: 500;
}

.app-alert__message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.app-alert__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -4px -4px 0 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 6px;
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.app-alert__close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.app-alert--success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.app-alert--success .app-alert__icon {
    color: #15803d;
    background: #dcfce7;
}

.app-alert--error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.app-alert--error .app-alert__icon {
    color: #b91c1c;
    background: #fee2e2;
}

.app-alert--info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.app-alert--info .app-alert__icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.app-alert--warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.app-alert--warning .app-alert__icon {
    color: #b45309;
    background: #fef3c7;
}
