/* public/assets/css/tools/audio/hearing-amplifier.css */

.ha-wrapper { padding: 32px; }
.ha-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.ha-title { margin: 0 0 10px 0; font-size: 1.6rem; color: var(--text-main); }
.ha-subtitle { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* 强制警告横幅 */
.ha-alert {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: center;
}
.ha-alert-title { color: #dc2626; font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; text-transform: uppercase; }
.ha-alert-desc { color: #991b1b; font-size: 0.95rem; font-weight: 500; }
[data-theme="dark"] .ha-alert { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.3); }
[data-theme="dark"] .ha-alert-title { color: #f87171; }
[data-theme="dark"] .ha-alert-desc { color: #fca5a5; }

.ha-container { display: flex; flex-wrap: wrap; gap: 24px; }

.ha-main-panel, .ha-controls-panel {
    flex: 1;
    min-width: 300px;
    background: var(--bg-body);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.ha-status-badge {
    text-align: center;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 auto 20px auto;
    width: fit-content;
    transition: 0.3s;
}
.ha-status-badge.active {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.ha-visualizer-box {
    width: 100%;
    height: 120px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}
#haCanvas { width: 100%; height: 100%; display: block; }

.ha-btn-start {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}
.ha-btn-start:hover { background: var(--primary-hover); transform: translateY(-2px); }
.ha-btn-start.stop-mode { background: #ef4444; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.ha-btn-start.stop-mode:hover { background: #dc2626; }

/* 调节器 */
.ha-slider-group { background: var(--bg-surface); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 16px; }
.ha-slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.ha-val-badge { background: var(--bg-body); padding: 4px 10px; border-radius: 6px; color: var(--primary-color); font-weight: 700; font-family: monospace; border: 1px solid var(--border-color); }
.ha-slider-group input[type="range"] { width: 100%; accent-color: var(--primary-color); cursor: pointer; }

@media (max-width: 768px) {
    .ha-container { flex-direction: column; }
    .ha-wrapper { padding: 16px; }
}