.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #9130f8, #7da7f0);
    position: relative; /* agora ela fica no fluxo normal da página */
    top: auto;           /* garante que não tente fixar no topo */
    z-index: 1;          /* mantém acima de elementos normais, mas não flutua */
}


.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-center {
    flex: 1;
    justify-content: center;
    gap: 8px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563eb;
}

.nav-company {
    font-weight: 600;
    color: #2563eb;
    font-size: 1.3rem;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background-color: #000000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #838383;
}

.btn-outline {
    border: 1px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
}

/* Botão do menu */
.btn-menu {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-menu:hover {
    background: #eaeaea;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    min-width: 190px;
    overflow: hidden;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background: #f4f4f4;
    color: #d62828;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

.logout-link {
    color: #d62828 !important;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-company {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center; /* centraliza verticalmente */
}

.saved-count {
    color: red; /* cor do número */
    margin-left: 5px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center; /* centraliza verticalmente */
}

/* Ajuste só para a index.php */
body.index .navbar {
    padding: 10px 20px;  /* aumenta um pouco em relação a 8px */
    height: 70px;         /* altura confortável, menor que outras páginas, mas não muito curta */
}

/* Ajuste search-bar apenas na index */
body.index .search-bar {
    height: 70px;
}

body.index .search-bar select,
body.index .search-bar .btn-primary {
    height: 32px;
    font-size: 14px;
    padding: 4px 8px;
}

