/* Header Geral */
header {
    background: #1B5E20;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: 80px;
    overflow: hidden;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navegação Principal */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

#nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

#menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

#menu-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#menu-links a:hover {
    background-color: #2E7D32;
}

.nav-actions .login-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-actions .login-btn:hover {
    background-color: #45a049;
}

/* Search form in header */
#search-form {
    display: flex;
    align-items: center;
    background-color: #f0f4f3;
    border-radius: 20px;
    padding: 4px;
}

#search-form input[type="text"] {
    border: none;
    outline: none;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    background: transparent;
    color: #333;
    width: 150px;
    transition: width 0.3s;
}

#search-form input[type="text"]:focus {
    width: 200px;
}

#search-form button {
    background: #388e3c;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#search-form button:hover {
    background: #1B5E20;
}

/* Menu Hamburguer (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    #nav-content {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background-color: #1B5E20;
        width: 100%;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    #nav-content.active {
        display: flex;
    }

    #menu-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    #menu-links li {
        width: 100%;
        text-align: center;
    }

    #menu-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #2E7D32;
    }

    .nav-actions {
        padding: 15px;
    }

    #search-form {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }

    #search-form input[type="text"] {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}