* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #3c4043;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 24px;
    margin-right: 5px;
}

.logo span {
    font-size: 22px;
    color: #5f6368;
}

.settings-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.material-icons {
    color: #5f6368;
    font-size: 22px;
}

main {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

.tab-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #dadce0;
}

.tab {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    color: #5f6368;
}

.tab.active {
    color: #1a73e8;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
}

.tab span {
    margin-right: 8px;
}

.translation-container {
    margin-bottom: 30px;
    width: 100%;
}

.language-container {
    display: flex;
    flex-direction: row;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    gap: 40px;
}

.source-language, .target-language {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.source-language {
    margin-right: 0;
}

.language-bar {
    display: flex;
    padding: 14px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    height: 58px;
    box-sizing: border-box;
}

.language-bar::-webkit-scrollbar {
    display: none;
}

.detect-text {
    margin-right: 15px;
    color: #1a73e8;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

.language-button {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    color: #5f6368;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.language-button:hover {
    background-color: #f1f3f4;
}

.more-languages {
    padding: 5px;
}

.input-container, .output-container {
    padding: 20px;
    min-height: 180px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.source-text {
    width: 100%;
    height: 140px;
    border: none;
    resize: none;
    font-size: 18px;
    outline: none;
    flex-grow: 1;
}

.source-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.mic-button, .clear-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.character-count {
    color: #5f6368;
    font-size: 13px;
}

.swap-languages {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.swap-button {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.swap-button .material-icons {
    font-size: 26px;
    color: #5f6368;
}

.swap-button:hover {
    background-color: #f1f3f4;
}

.output-container {
    padding: 20px;
    min-height: 150px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.translation-result {
    font-size: 20px;
    color: #3c4043;
    min-height: 140px;
    flex-grow: 1;
    word-wrap: break-word;
    line-height: 1.5;
}

.bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.bottom-section {
    display: flex;
    gap: 60px;
    margin-bottom: 20px;
}

.history-button, .saved-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.history-button span, .saved-button span {
    margin-top: 8px;
    font-size: 14px;
}

.history-button .material-icons, .saved-button .material-icons {
    font-size: 32px;
    border-radius: 50%;
    background-color: #f1f3f4;
    padding: 12px;
}

.footer {
    margin-top: 40px;
}

.feedback {
    color: #5f6368;
    font-size: 13px;
    cursor: pointer;
}

.feedback:hover {
    text-decoration: underline;
} 