/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styles */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3436;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo a:hover {
    color: #74b9ff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #2d3436;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f7fa;
    color: #74b9ff;
}

.nav-links a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #74b9ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #74b9ff;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #2d3436;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

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

header h1 {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    color: #636e72;
}

.converter-select {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.select-wrapper {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.select-wrapper:hover {
    transform: translateY(-2px);
}

.converter-dropdown {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    color: #2d3436;
    background: transparent;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.converter-dropdown:focus {
    border-color: #74b9ff;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: #b2bec3;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.2s ease;
}

.select-wrapper:hover::after {
    color: #74b9ff;
}

/* Converter Content Styles */
.converter-content {
    max-width: 800px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.converter-description {
    margin-bottom: 1.5rem;
    color: #636e72;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3436;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #74b9ff;
}

/* Currency Converter Specific Styles */
.currency-converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currency-select {
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.currency-select:focus {
    border-color: #74b9ff;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.update-time {
    font-size: 0.9rem;
    color: #636e72;
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add new styles for footer */
.page-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-footer p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #636e72;
    line-height: 1.6;
}

.footer-nav {
    max-width: 800px;
    margin: 0 auto;
}

.footer-nav h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: center;
}

.footer-nav a {
    color: #74b9ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #0984e3;
    text-decoration: underline;
}