/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #f0f0f0;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    width: 24px;
    height: 24px;
}

.btn-primary {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
}

.btn-secondary {
    background: linear-gradient(to right, #ff6b6b, #ffa502);
    color: white;
}

.btn-download {
    background: linear-gradient(to right, #38b000, #7ae582);
    color: white;
}

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

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.transcript-container {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    min-height: 200px;
}

#transcript {
    font-size: 1.4rem;
    line-height: 1.7;
    min-height: 150px;
    background: rgba(30, 30, 50, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#translated {
    font-size: 1.4rem;
    line-height: 1.7;
    min-height: 150px;
    background: rgba(30, 30, 50, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.visualizer {
    height: 100px;
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.bar {
    width: 4px;
    background: linear-gradient(to top, #4facfe, #00f2fe);
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease;
}

.audio-debug {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}
