* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}
.container { max-width: 700px; margin: 0 auto; }
h1 { text-align: center; margin-bottom: 20px; font-size: 1.5rem; }

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}
.lang-btn, .mobile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
}
.mobile-btn { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.mobile-btn.active { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}
.status.connected { background: #00c853; }
.status.recording { background: #ff1744; animation: pulse 1s infinite; }
.status.disconnected { background: #757575; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.btn-row { display: flex; gap: 15px; margin-bottom: 20px; }
.record-btn, .send-btn {
    flex: 1;
    padding: 18px;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.record-btn { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.record-btn.recording { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.image-btn { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.send-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.send-btn:disabled { background: #555; cursor: not-allowed; opacity: 0.5; }
.bedrock-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bedrock-btn.active { background: linear-gradient(135deg, #f5af19 0%, #f12711 100%); }

.current-section { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 20px; margin-bottom: 20px; }
.label { font-size: 0.85rem; color: #aaa; margin-bottom: 8px; }
.transcript, .translation { min-height: 60px; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 10px; margin-bottom: 15px; font-size: 1.15rem; line-height: 1.5; }
.translation { color: #4fc3f7; margin-bottom: 0; }

.history-section { background: rgba(255,255,255,0.05); border-radius: 15px; padding: 20px; }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.clear-btn { background: transparent; border: 1px solid #ff5252; color: #ff5252; padding: 6px 14px; border-radius: 15px; cursor: pointer; }
.history { max-height: 400px; overflow-y: auto; }
.history-item { background: rgba(0,0,0,0.2); padding: 12px 15px; border-radius: 10px; margin-bottom: 10px; position: relative; }
.history-item .original { color: #ccc; font-size: 0.95rem; margin-bottom: 6px; }
.history-item .translated { color: #4fc3f7; font-size: 1.05rem; padding-right: 40px; }
.play-btn { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,0.1); border: none; color: #4fc3f7; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.play-btn:hover { background: rgba(255,255,255,0.2); }
