/* ── Unified Alert / Message System ── */

/* Base alert */
.alert-proto {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.45;
    position: relative;
}
.alert-proto .alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.alert-proto .alert-body {
    flex: 1;
}
.alert-proto .alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.4;
    padding: 0 0 0 8px;
    color: inherit;
    transition: opacity 0.15s;
    line-height: 1;
}
.alert-proto .alert-close:hover {
    opacity: 0.8;
}

/* Success */
.alert-proto.alert-success {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}
.alert-proto.alert-success .alert-icon {
    color: #43a047;
}

/* Error */
.alert-proto.alert-error,
.alert-proto.alert-danger {
    background: #fbe9e7;
    border-color: #ffccbc;
    color: #bf360c;
}
.alert-proto.alert-error .alert-icon,
.alert-proto.alert-danger .alert-icon {
    color: #e64a19;
}

/* Warning */
.alert-proto.alert-warning {
    background: #fff8e1;
    border-color: #ffe082;
    color: #e65100;
}
.alert-proto.alert-warning .alert-icon {
    color: #ffa000;
}

/* Info */
.alert-proto.alert-info {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1565c0;
}
.alert-proto.alert-info .alert-icon {
    color: #1e88e5;
}

/* ── Field-level inline errors ── */
.field-error-proto {
    font-size: 0.82rem;
    color: #bf360c;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field-error-proto i {
    font-size: 0.75rem;
    color: #e64a19;
}

/* ── Admin message test triggers ── */
.admin-toast-triggers {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-toast-triggers .trigger-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9aa0a6;
    text-align: center;
    margin-bottom: 2px;
}
.admin-toast-triggers .trigger-row {
    display: flex;
    gap: 4px;
}
.admin-toast-triggers .trigger-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.12s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-toast-triggers .trigger-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.admin-toast-triggers .trigger-btn.t-success { color: #43a047; border-color: #c8e6c9; }
.admin-toast-triggers .trigger-btn.t-success:hover { background: #e8f5e9; }
.admin-toast-triggers .trigger-btn.t-error { color: #e64a19; border-color: #ffccbc; }
.admin-toast-triggers .trigger-btn.t-error:hover { background: #fbe9e7; }
.admin-toast-triggers .trigger-btn.t-warning { color: #ffa000; border-color: #ffe082; }
.admin-toast-triggers .trigger-btn.t-warning:hover { background: #fff8e1; }
.admin-toast-triggers .trigger-btn.t-info { color: #1e88e5; border-color: #bbdefb; }
.admin-toast-triggers .trigger-btn.t-info:hover { background: #e3f2fd; }
