.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-color: var(--alert-success-border);
}

.alert-danger {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-color: var(--alert-error-border);
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-color: var(--alert-info-border);
}

/* Cards - override all card styles */
.alert-danger {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-color: var(--alert-error-border);
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-color: var(--alert-info-border);
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-color: var(--alert-success-border);
}

.alert-success {
    background: var(--color-success-500);
    color: var(--text-inverse);
}

.alert-error, .alert-danger {
    background: var(--color-error-500);
    color: var(--text-inverse);
}

.alert-info {
    background: var(--color-primary-600);
    color: var(--text-inverse);
}

.alert-warning {
    background: var(--color-warning-500);
    color: var(--text-inverse);
}

.alert-loading {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    background: var(--color-primary-600);
    color: var(--text-inverse);
}

.loading-spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-inverse);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.info-box {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box.notice-warning {
    background: var(--color-warning-100);
    color: var(--color-warning-800);
}

.info-box.notice-error {
    background: var(--color-error-100);
    color: var(--color-error-800);
}

[data-theme="dark"] .info-box.notice-warning {
    background: var(--color-warning-900);
    color: var(--color-warning-200);
}

[data-theme="dark"] .info-box.notice-error {
    background: var(--color-error-900);
    color: var(--color-error-200);
}

/* Persistent error banner - stays until dismissed */
.persistent-error-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.alert-persistent {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-error-600);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.alert-persistent .alert-persistent-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.alert-persistent .alert-persistent-message {
    font-weight: 600;
    line-height: 1.4;
}

.alert-persistent .alert-persistent-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.alert-persistent .alert-persistent-close:hover {
    color: var(--text-primary);
}

.alert-persistent .alert-persistent-details {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alert-persistent .alert-persistent-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.alert-persistent .alert-persistent-action {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: var(--color-primary-600);
    color: var(--text-inverse);
}

.alert-persistent .alert-persistent-action:hover {
    background: var(--color-primary-700);
}

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

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

