* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: white;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1e1e1e;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #444;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}
.title-section {
    text-align: center;
    flex: 1;
}
.title-section h1 {
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 300;
}
.title-section p {
    opacity: 0.8;
    font-size: 1em;
}
.session-info {
    padding: 20px 30px;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #888;
}
.translation-count {
    color: #00bcd4;
    font-weight: 600;
}
.voice-visualization {
    height: 50px;
    background: #2a2a2a;
    border-radius: 10px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #444;
}
.wave-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 100%;
}
.wave-bar {
    width: 4px;
    background: linear-gradient(to top, #00bcd4, #4dd0e1);
    border-radius: 2px;
    transition: height 0.1s ease;
    height: 15px;
}
.error-message {
    color: #f44336;
    padding: 15px 30px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    margin: 0;
    display: none;
    text-align: center;
}
.main-display {
    padding: 30px;
    text-align: center;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #1a1a1a;
}
.indonesian-main {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    min-height: 400px;
    max-height: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: min(15px, 3vw);
    margin-bottom: 20px;
}
.control-button {
    width: min(50px, 8vw);
    height: min(50px, 8vw);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: min(1.2em, 4vw);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.start-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}
.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}
.start-button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.stop-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}
.stop-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.4);
}
.stop-button:disabled {
    background: #555;
    cursor: not-allowed;
}
.stop-button.recording {
    animation: pulse 1.5s infinite;
}
.refresh-button {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}
.refresh-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}
.refresh-button.processing {
    animation: spin 1s linear infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.model-selection-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #333;
    border-radius: 10px;
    border: 1px solid #555;
}
.model-selection {
    display: flex;
    align-items: center;
    gap: 10px;
}
.model-selection label {
    font-weight: 500;
    color: #00bcd4;
    font-size: 0.9em;
}
.model-selection select {
    background: #444;
    color: white;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
}
.model-selection select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}
.status-display {
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 500;
    color: #ccc;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-display.listening {
    color: #4caf50;
}
.status-display.processing {
    color: #ff9800;
}
.indonesian-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00bcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.indonesian-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 300;
    flex: 1;
    overflow-y: auto;
    text-align: left;
    padding: 15px;
    border-radius: 10px;
    background: #2b2b2b;
    border: 1px solid #444;
}
.indonesian-text.loading {
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a, #2a2a2a);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
    color: #888;
    font-size: 1.8em;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.korean-section {
    background: #333;
    border: 1px solid #555;
    border-radius: 15px;
    padding: 25px;
    flex-shrink: 0;
}
.korean-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #00bcd4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.korean-text {
    font-size: 1.3em;
    line-height: 1.6;
    color: #e0e0e0;
    min-height: 60px;
    display: flex;
    align-items: center;
}
.controls {
    padding: 25px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2a2a2a;
    border-top: 1px solid #444;
    gap: 30px;
}
.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.control-item label {
    font-weight: 500;
    color: #ccc;
}
.control-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00bcd4;
}
.continuous-mode {
    background: #333;
    border: 2px solid #555;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.continuous-mode.active {
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    .logo-section {
        order: -1;
    }
    .indonesian-text {
        font-size: 1.8em;
    }
    .korean-text {
        font-size: 1.1em;
    }
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    .model-selection-section {
        flex-direction: column;
        gap: 15px;
    }
}
.flag {
    font-size: 1.2em;
}