* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.language-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 16px;
}

.swap-btn {
    background: #7f8c8d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.swap-btn:hover {
    background: #3498db;
    transform: rotate(180deg);
}

.translation-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.text-box {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}

textarea {
    width: 100%;
    height: 150px;
    border: none;
    resize: vertical;
    font-size: 16px;
    padding: 10px;
    outline: none;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

button:hover {
    background: #2980b9;
}

.voice-btn {
    background: #27ae60;
}

.copy-btn {
    background: #9b59b6;
}

.listen-btn {
    background: #e67e22;
}

.paste-btn {
    background: #34495e;
}

.loading {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .language-selector {
        grid-template-columns: 1fr;
    }
    
    .swap-btn {
        margin: 0 auto;
    }
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

/* Paradox Link Styling */
.paradox-link {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.paradox-link:hover {
    background: #2980b9;
}

/* Attribution Styling */
.attribution {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}
