:root {
    --primary-color: #f9b23a;
    --bg-color: #202124;
    --box-bg: #303134;
    --border-color: #5f6368;
    --text-color: #e8eaed;
    --hover-color: #3c4043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

.translation-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.translation-box {
    flex: 1;
    background: var(--box-bg);
    border-radius: 8px;
    overflow: hidden;
}

.language-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.actions button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
}

.actions button:hover {
    color: var(--primary-color);
}

.text-area {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: none;
    background: var(--box-bg);
    color: var(--text-color);
    font-size: 16px;
    resize: none;
}

.text-area:focus {
    outline: none;
}

.swap-languages {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--box-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

.swap-languages:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.shortcut-info, .char-count {
    padding: 8px 15px;
    font-size: 14px;
    color: #9aa0a6;
    border-top: 1px solid var(--border-color);
}

footer {
    text-align: center;
}

.info-box {
    display: inline-block;
    padding: 10px 20px;
    background: var(--box-bg);
    border-radius: 8px;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-color);
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 4px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .translation-container {
        flex-direction: column;
    }
    .swap-languages {
        transform: rotate(90deg);
    }
}

@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--box-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}