/* Subtle inline feedback — shared across dashboard, auth, admin */

.inline-message {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--racing-text-muted, #b0b0b0);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--racing-light-grey, #444);
}

.inline-message--success {
    border-left-color: var(--racing-green, #00a651);
}

.inline-message--success::before {
    content: '✓ ';
    color: var(--racing-green, #00a651);
    font-weight: 600;
}

.inline-message--error {
    border-left-color: var(--racing-red, #e31e24);
}

.inline-message--error::before {
    content: '! ';
    color: var(--racing-red, #e31e24);
    font-weight: 700;
}

.inline-message--warning {
    border-left-color: #b45309;
}

.inline-message--warning::before {
    content: '⚠ ';
    color: #d97706;
    font-weight: 600;
}

.inline-message[hidden],
.inline-message:not(.visible) {
    display: none;
}

/* Legacy class aliases */
.suggestion-success,
.suggestion-error,
.auth-error {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--racing-text-muted, #b0b0b0);
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 3px solid var(--racing-light-grey, #444);
    display: none;
}

.suggestion-success,
.auth-error.success {
    border-left-color: var(--racing-green, #00a651);
}

.suggestion-error,
.auth-error.visible {
    display: block;
}

.auth-error.visible {
    border-left-color: var(--racing-red, #e31e24);
}

.suggestion-success::before {
    content: '✓ ';
    color: var(--racing-green, #00a651);
    font-weight: 600;
}

.suggestion-error::before,
.auth-error.visible::before {
    content: '! ';
    color: var(--racing-red, #e31e24);
    font-weight: 700;
}

/* Admin alerts — same subtle treatment */
.automation-alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--racing-text-muted, #b0b0b0);
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 3px solid #b45309;
}

.automation-alert-warning {
    border-left-color: #b45309;
}

.automation-alert-warning::before {
    content: '⚠ ';
    color: #d97706;
    font-weight: 600;
}

.automation-alert-error {
    border-left-color: var(--racing-red, #e31e24);
}

.automation-alert-error::before {
    content: '! ';
    color: var(--racing-red, #e31e24);
    font-weight: 700;
}
