.ewh-voice-recorder {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #d4e1f2;
    border-radius: 12px;
    background: #f8fbff;
}

.ewh-voice-recorder__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ewh-voice-recorder__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.ewh-voice-recorder__btn:active {
    transform: scale(0.97);
}

.ewh-voice-recorder__btn--record {
    background: #e74c3c;
    color: #fff;
}

.ewh-voice-recorder__btn--record:hover {
    background: #c0392b;
}

.ewh-voice-recorder__btn--record.is-recording {
    animation: ewhRecordPulse 1s ease-in-out infinite;
}

.ewh-voice-recorder__btn--stop {
    background: #34495e;
    color: #fff;
}

.ewh-voice-recorder__btn--stop:hover {
    background: #2c3e50;
}

.ewh-voice-recorder__btn--rerecord {
    background: #fff;
    color: #34495e;
    border: 1px solid #bdc3c7;
}

.ewh-voice-recorder__btn--rerecord:hover {
    background: #ecf0f1;
}

@keyframes ewhRecordPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ewh-voice-recorder__btn--record.is-recording {
        animation: none;
        box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.3);
    }
}

.ewh-voice-recorder__timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 50px;
}

.ewh-voice-recorder__timer.is-warning {
    color: #e74c3c;
}

.ewh-voice-recorder__progress {
    width: 100%;
    height: 6px;
    background: #dce8f8;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.ewh-voice-recorder__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s linear;
}

.ewh-voice-recorder__progress-bar.is-warning {
    background: linear-gradient(90deg, #e67e22, #e74c3c);
}

.ewh-voice-recorder__status {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7f99;
}

.ewh-voice-recorder__status--error {
    color: #e74c3c;
}

.ewh-voice-recorder__status--success {
    color: #27ae60;
}

.ewh-voice-recorder__player {
    margin-top: 12px;
}

.ewh-voice-recorder__player audio {
    width: 100%;
    max-width: 400px;
}

.ewh-voice-recorder__saved {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
}

.ewh-voice-recorder__upload-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #bdc3c7;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: ewhSpin 0.6s linear infinite;
}

@keyframes ewhSpin {
    to { transform: rotate(360deg); }
}
