
.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.profile-link:hover {
    background-color: #f0f0f0;
    text-decoration: none;
    color: #005ea4;
}

.profile-photo-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

    @media (max-width: 991.98px) {
        .navbar-collapse {
            position: fixed;
            top: 0;
            left: -100%;
            width: 280px;
            height: 100vh;
            padding: 20px;
            background: #fff;
            box-shadow: 3px 0 15px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            z-index: 1050;
        }
        
        .navbar-collapse.show {
            left: 0;
        }

        .nav-link {
            padding: 12px 20px !important;
            margin: 8px 0;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            background: #f8f9fa;
        }

        #profileButton {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px 15px !important;
            border-bottom: 1px solid #eee;
            margin-bottom: 15px;
        }

        .navbar-toggler {
            position: flex;
            right: 15px; /* Mover o botão para a direita */
            top: 60px; 
            z-index: 1000;
        }
    }

    @media (min-width: 992px) {
        .navbar-nav {
            align-items: center;
            gap: 30px;
        }
        
        .nav-link {
            position: relative;
            padding: 8px 15px !important;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #007bff;
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
        }
    }

        

        .custom-navbar {
            background-color: #fff;
            padding: 43px 0 15px 0;
            
            position: relative;
            width: 100%;
        }

        .custom-navbar-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .custom-navbar-brand img {
            width: 92px;
            height: auto;
        }

        .custom-navbar-toggler {
            display: none;
            background: none;
            border: 1px solid #dee2e6;
            border-radius: 0.25rem;
            padding: 0.375rem 0.75rem;
            cursor: pointer;
            transition: all 0.15s ease-in-out;
        }

        .custom-navbar-toggler:hover {
            background-color: #f8f9fa;
        }

        .custom-navbar-toggler-icon {
            width: 1.5em;
            height: 1.5em;
            display: inline-block;
            vertical-align: middle;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100%;
        }

        .custom-navbar-nav {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 2rem;
        }

        .custom-nav-item {
            display: flex;
            align-items: center;
        }

        .custom-nav-link {
            text-decoration: none;
            color: #333;
            display: flex;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            transition: all 0.15s ease-in-out;
            position: relative;
        }

        .custom-nav-link:hover {
            background-color: #f8f9fa;
            color: #007bff;
        }

        .custom-profile-link {
            flex-direction: column;
            align-items: flex-start;
            padding: 0.75rem 1rem;
        }

        .custom-profile-main {
            display: flex;
            align-items: center;
            margin-bottom: 0.25rem;
        }

        .custom-profile-img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-right: 0.5rem;
        }

        .custom-profile-name {
            font-weight: bold;
            color: #333;
        }

        .custom-profile-subtitle {
            font-size: 0.875rem;
            color: #6c757d;
            margin-left: 53px;
        }

        .custom-logout-link {
            color: #dc3545;
        }

        .custom-logout-link:hover {
            background-color: #f8d7da;
            color: #721c24;
        }

        .custom-logout-link i {
            margin-right: 0.5rem;
        }

        /* Mobile Styles */
        @media (max-width: 991px) {
            .custom-navbar-toggler {
                display: block;
            }

            .custom-navbar-collapse {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background-color: #fff;
                border-top: 1px solid #dee2e6;
               
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease-in-out;
            }

            .custom-navbar-collapse.show {
                max-height: 300px;
            }

            .custom-navbar-nav {
                flex-direction: column;
                gap: 0;
                padding: 1rem;
            }

            .custom-nav-item {
                width: 100%;
                border-bottom: 1px solid #f8f9fa;
            }

            .custom-nav-item:last-child {
                border-bottom: none;
            }

            .custom-nav-link {
                width: 100%;
                padding: 1rem;
                border-radius: 0;
            }

            .custom-profile-link {
                align-items: flex-start;
            }

            .custom-profile-subtitle {
                margin-left: 53px;
            }
        }

        /* Overlay para fechar menu mobile */
        .custom-navbar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 999;
        }

        .custom-navbar-overlay.show {
            display: block;
        }

        .custom-navbar {
            position: relative;
            z-index: 1000;
        }
    