/* Component styles - Panels, forms, buttons, status indicators */

.panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

body.dark-mode .panel {
    background: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.panel h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
}

body.dark-mode .panel h2 {
    color: #b0b0b0;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

body.dark-mode label {
    color: #b0b0b0;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

body.dark-mode input[type="text"] {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #e0e0e0;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-start {
    background: #27ae60;
    color: white;
}

.btn-start:hover {
    background: #229954;
}

.btn-stop {
    background: #e74c3c;
    color: white;
}

.btn-stop:hover {
    background: #c0392b;
}

.btn-stop:disabled,
.btn-start:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.idle {
    background: #95a5a6;
}

.status-indicator.recording {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 16px;
    color: #333;
}

body.dark-mode .status-text {
    color: #e0e0e0;
}

audio {
    width: 100%;
    margin-top: 10px;
}

#preview-audio {
    display: none;
}
