:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

/* Header Styles */
.header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

/* Tools Dropdown Styles */
.tools-dropdown {
    position: relative;
}

.tools-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    padding: 0;
    font-size: 1rem;
}

.tools-button:hover {
    opacity: 1;
}

.tools-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 240px;
    display: none;
    padding: 0.5rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.tools-menu.active {
    display: flex;
    flex-direction: column;
}

.tools-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.tools-menu a:hover {
    background-color: var(--bg-light);
}

.tools-menu i {
    width: 20px;
    color: var(--primary-color);
}

/* Language Select Styles */
.language-select {
    position: relative;
    cursor: pointer;
    margin-left: auto;
}

.language-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.language-button:hover {
    background-color: rgba(255,255,255,0.1);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.language-menu.active {
    display: flex;
    flex-direction: column;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.language-menu a:hover {
    background-color: var(--bg-light);
}

/* Main Container Styles */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .language-select {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        margin-left: 1rem;
    }

    .tools-menu, .language-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    .tools-menu {
        width: 90%;
        max-width: 300px;
    }

    .language-menu {
        width: 90%;
        max-width: 280px;
    }

    .tools-menu a, .language-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .tools-menu a:last-child, .language-menu a:last-child {
        border-bottom: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-menu {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .language-select {
        width: 100%;
    }
    
    .language-button {
        width: 100%;
        justify-content: center;
    }
}