/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    background-color: #2C1F6E;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.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(6px, -6px);
}

/* Nav List */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-link:hover {
    color: #ff6b00;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2C1F6E;
    min-width: 100px;
    padding: 0.5rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b00;
}

/* Botão Agendar */
.navbar .btn-primary {
    background-color: #ff6b00 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.4rem 1rem !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem !important;
}

.navbar .btn-primary:hover {
    background-color: #e55e00 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-link {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ff6b00 !important;
}

.user-link i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .user-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-menu {
    min-width: 140px;
    right: 0;
    left: auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
}

.user-menu .dropdown-item {
    color: #333 !important;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ff6b00 !important;
}

.user-menu .dropdown-item i {
    width: 14px;
    text-align: center;
    font-size: 0.8rem;
}

.logout-btn {
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* Media Queries */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .user-link {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.85rem;
    }

    .user-menu {
        min-width: 130px;
    }

    .user-menu .dropdown-item {
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2C1F6E;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu.active {
        display: block;
    }

    .user-menu {
        position: static;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        padding: 0.2rem 0;
    }

    .user-menu .dropdown-item {
        color: #fff !important;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .user-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ff6b00 !important;
    }

    .logout-btn:hover {
        background-color: rgba(220, 53, 69, 0.8) !important;
        color: #fff !important;
    }

    .logo img {
        height: 25px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .btn-primary {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    .logo img {
        height: 20px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .btn-primary {
        font-size: 0.8rem;
    }

    .user-link {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem;
    }

    .user-link span {
        display: none;
    }

    .user-menu .dropdown-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .user-menu .dropdown-item i {
        font-size: 0.7rem;
    }
}
