#audio-recorder-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* User welcome section - minimal style */
.user-welcome {
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
    background: none;
    color: #333;
}

.user-welcome h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.user-welcome p {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Clean button styling */
.recorder-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background: white;
    color: #374151;
    transition: all 0.15s ease;
    min-width: 120px;
}

.btn:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
}

.btn-record:not(:disabled) {
    border-color: #10b981;
    color: #10b981;
}

.btn-record:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #059669;
}

/* Recording status with waveform visualization */
.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#recording-time {
    font-size: 24px;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #1e293b;
    min-width: 80px;
}

/* Green circle indicator like Whisper */
.indicator-off {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #d1d5db;
    position: relative;
}

.indicator-on {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #10b981;
    position: relative;
    animation: pulse-green 2s infinite;
}

.indicator-on::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 4px solid white;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    margin-left: 1px;
}

/* Waveform visualization */
.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    margin-left: 15px;
}

.waveform-bar {
    width: 3px;
    background: #10b981;
    border-radius: 2px;
    animation: waveform 1.5s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 6px; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 10px; animation-delay: 0.5s; }

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes waveform {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Audio player styling */
#audio-player {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

/* Status messages - clean style */
.status-message {
    margin: 20px 0;
    text-align: center;
}

.success, .error, .loading {
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid;
}

.success {
    color: #065f46;
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

.error {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fca5a5;
}

.loading {
    color: #1e40af;
    background-color: #eff6ff;
    border-color: #93c5fd;
}

/* Analysis container - Whisper-inspired */
#analysis-container {
    margin-top: 40px;
    padding: 0;
    border: none;
    background: none;
}

#analysis-container h4 {
    color: #1e293b;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: none;
    padding: 0;
}

#analysis-container h5 {
    color: #374151;
    margin: 30px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Transcript box - like Whisper */
.transcription-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    font-style: normal;
    position: relative;
}

.transcription-box::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 24px;
    color: #94a3b8;
    font-weight: bold;
}

/* Analysis results box */
.analysis-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    color: #374151;
    white-space: pre-line;
}

/* Download section */
#download-section {
    margin-top: 30px;
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#download-section h5 {
    margin-top: 0;
}

#download-section p {
    margin: 10px 0;
}

#download-section a {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    margin: 8px 12px;
    border: 1px solid #d1d5db;
    font-weight: 500;
    transition: all 0.15s ease;
}

#download-section a:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}

/* Loading animation */
.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 640px) {
    #audio-recorder-container {
        margin: 20px;
        padding: 24px;
    }
    
    .recorder-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        margin: 4px 0;
    }
    
    .user-welcome h3 {
        font-size: 24px;
    }
    
    #recording-time {
        font-size: 20px;
    }
}