:root {
    --primary-color: #2196F3;
    --secondary-color: #f44336;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.mic-button {
    padding: 20px 40px;
    font-size: 1.5em;
    border: none;
    border-radius: 50px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.mic-button:hover {
    background-color: #357abd;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.mic-button.recording {
    background-color: #ea4335;
    animation: pulse 1.5s infinite;
}

.translation-display {
    width: 90%;
    max-width: 1400px;
    min-height: 70vh;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.translation-content {
    position: relative;
    z-index: 2;
    font-size: 4.5em;
    line-height: 1.6;
    color: #000000;
    transition: opacity 0.3s ease;
    opacity: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#englishText {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3.5em;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 60vh;
    overflow: hidden;
    text-overflow: ellipsis;
}

.translation-content.interim {
    opacity: 0.8;
}

.status-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.137);
    color: rgba(255, 255, 255, 0.445);
    padding: 14px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3em;
    transition: all 0.3s ease;
    z-index: 1000;
}

.status-indicator i {
    font-size: 1.3em;
}

.status-indicator.recording i {
    color: #ea443557;
    animation: pulse 1.5s infinite;
}

.status-indicator.error {
    bbackground: rgba(234, 68, 53, 0.205);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.language-select {
    flex: 0 1 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.language-select:focus {
    border-color: var(--primary-color);
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.translate-button {
    background-color: #4CAF50;
    color: white;
}

.translate-button:hover {
    background-color: #388E3C;
    transform: translateY(-1px);
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.translate-column {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.column-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

textarea {
    flex: 1;
    width: 100%;
    min-height: 300px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

textarea:focus {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .language-select {
        flex: none;
        width: 100%;
    }

    .control-buttons {
        justify-content: stretch;
    }

    button {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    textarea {
        min-height: 200px;
    }

    .container {
        padding: 10px;
    }

    .mic-button {
        padding: 15px 30px;
        font-size: 1.2em;
    }

    .translation-display {
        width: 95%;
        min-height: 70vh;
        padding: 20px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    #englishText {
        font-size: 1.8em;
        max-height: 40vh;
    }

    .status-indicator {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 1em;
    }

    .background-logo {
        max-width: 70%;
        max-height: 70%;
    }
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #333;
    animation: blink 0.7s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Copy toàn bộ CSS từ phần style trong index.html */ 
