/* Language Switcher - IMPROVED */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
}

.lang-btn:hover {
    background: #f0f0f0;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 20px;
    background: #f5f5f5;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.mode-selector {
    margin-bottom: 30px;
    text-align: center;
}

.mode-selector button {
    padding: 12px 24px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.mode-selector button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel.active {
    display: block;
}

.panel h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.status {
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.logs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    body {
        padding-top: 60px;
        margin: 10px;
    }
}