.audio-recorder-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.recorder-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-record:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-pause {
    background: #f39c12;
    color: white;
}

.btn-pause:hover:not(:disabled) {
    background: #d68910;
    transform: translateY(-2px);
}

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

.btn-stop:hover:not(:disabled) {
    background: #7f8c8d;
    transform: translateY(-2px);
}

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

.btn-play:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-2px);
}

.btn-download {
    background: #3498db;
    color: white;
    margin: 5px;
}

.btn-download:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.recorder-status {
    text-align: center;
    margin-bottom: 30px;
}

.time-display {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.max-time {
    font-size: 20px;
    color: #95a5a6;
    font-weight: normal;
}

.visualizer-container {
    width: 100%;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

#visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

.playback-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.playback-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.playback-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.playback-time {
    text-align: center;
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

#audioPlayback {
    margin-top: 15px;
    border-radius: 8px;
}

.download-section {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.conversion-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 15px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

#downloadAudio {
    padding: 15px 30px;
    font-size: 18px;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.error-message.error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.error-message.success {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.error-message.warning {
    background: #fcf3cf;
    color: #d68910;
    border: 1px solid #f39c12;
}

.error-message.info {
    background: #d6eaf8;
    color: #2980b9;
    border: 1px solid #3498db;
}

.icon {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .audio-recorder-container {
        padding: 20px;
        margin: 10px;
    }
    
    .recorder-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .time-display {
        font-size: 24px;
    }
}
