
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}
.container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
h1 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 10px;
}
.subtitle {
    text-align: center;
    color: #5f6368;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
.config-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}
h2 {
    color: #5f6368;
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
.input-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3c4043;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
button:hover:not(:disabled) {
    background: #0d62d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 98, 217, 0.2);
}
button:active:not(:disabled) {
    transform: translateY(0);
}
button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.primary-btn {
    background: #34a853;
}
.primary-btn:hover:not(:disabled) {
    background: #2e8b47;
}
.danger-btn {
    background: #ea4335;
}
.danger-btn:hover:not(:disabled) {
    background: #d33426;
}
.control-section {
    background: #e8f0fe;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: center;
}
.word-display {
    font-size: 3rem;
    font-weight: bold;
    color: #1a73e8;
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-display {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1rem;
    text-align: center;
    border-left: 5px solid #1a73e8;
    background: #f8f9fa;
}
.status-success {
    border-left-color: #34a853;
    background: #e6f4ea;
}
.status-warning {
    border-left-color: #fbbc04;
    background: #fff8e1;
}
.status-error {
    border-left-color: #ea4335;
    background: #fce8e6;
}
.mic-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ea4335;
    margin-right: 10px;
    transition: background 0.3s;
}
.mic-indicator.active {
    background: #34a853;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
.progress-container {
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    margin: 25px 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    width: 0%;
    transition: width 0.3s;
}
.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}
.word-chip {
    padding: 10px 20px;
    background: #e8f0fe;
    border-radius: 25px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.word-chip.current {
    background: #1a73e8;
    color: white;
    border-color: #0d62d9;
    transform: scale(1.05);
}
.word-chip.completed {
    background: #e6f4ea;
    color: #137333;
    border-color: #34a853;
}
.log-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
}
.log-title {
    font-weight: 500;
    margin-bottom: 15px;
    color: #5f6368;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#log {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.log-time {
    color: #999;
    font-size: 12px;
    margin-right: 10px;
}
.log-message {
    color: #333;
}
.log-error {
    color: #ea4335;
}
.log-success {
    color: #34a853;
}
.log-info {
    color: #1a73e8;
}
.speech-preview {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #fbbc04;
}
.api-test {
    background: #f3e5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}