body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.user-info {
    font-size: 0.9rem;
}

.logout-btn {
    color: #ff5252;
    text-decoration: none;
    margin-left: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.lang-select {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-select label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #aaa;
}

.lang-select select {
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.auto-detect {
    padding: 10px;
    background: #1e1e1e;
    color: #4caf50;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.settings-box {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-box label {
    font-size: 0.8rem;
    color: #aaa;
}

.api-key-input {
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.walkie-talkie-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-height: 250px;
    justify-content: center;
}

.walkie-talkie-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reverse-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.reverse-button:hover {
    background: #3a3a3a;
    transform: scale(1.1);
}

.reverse-button:active {
    transform: scale(0.9);
}

.ptt-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    box-shadow: 10px 10px 20px #0c0c0c, -10px -10px 20px #2c2c2c;
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.ptt-button:active {
    box-shadow: inset 10px 10px 20px #0c0c0c, inset -10px -10px 20px #2c2c2c;
}

.ptt-button.recording {
    background: linear-gradient(145deg, #cc2b2b, #ff3333);
    box-shadow: 0 0 30px #ff3333;
    animation: pulse 1.5s infinite;
}

.ptt-button .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.ptt-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px #ff3333; }
    50% { box-shadow: 0 0 50px #ff3333; }
    100% { box-shadow: 0 0 20px #ff3333; }
}

.transcription-box {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.status {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.text-block {
    margin-bottom: 15px;
}

.text-block strong {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
}

.text-block p {
    margin: 0;
    font-size: 1.1rem;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    min-height: 24px;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #1e1e1e;
    border-radius: 12px;
    text-align: center;
}

.auth-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-container input {
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-container button {
    padding: 12px;
    background: #4caf50;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.auth-container button:hover {
    background: #43a047;
}

.auth-container .error {
    color: #ff5252;
    font-size: 0.9rem;
}

.auth-container a {
    color: #2196f3;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

.play-result-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: #4caf50;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.play-result-btn[hidden] {
    display: none;
}
