/**
 * Message Components
 * Success, error, warning notification boxes and alerts
 */

/* Base Message Styles */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.hidden {
    display: none;
    margin: 0;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde047;
}

/* Named Message Variants */
.message-success {
    background: #dcfce7;
    color: #166534;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
}

.error-message {
    display: none;
    background: #fee2e2;
    border: 2px solid var(--danger-color);
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error-message:not(:empty) {
    display: block;
}

/* Alert System */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-width: 1px;
    border-style: solid;
    font-size: 14px;
}

.alert strong {
    font-weight: var(--font-semibold);
}

.alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.alert-info strong {
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-success strong {
    color: #047857;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #78350f;
}

.alert-warning strong {
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.alert-danger strong {
    color: #991b1b;
}

/* Specific Message Types */
.translation-message {
    color: #64748b;
    font-style: italic;
    margin-bottom: 10px;
}

.no-listeners-message {
    margin-top: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.volume-warning-danger {
    background: #fee2e2;
    border: 2px solid #f87171;
    padding: 12px 16px;
    border-radius: 6px;
    color: #991b1b;
}
