/* ==========================================================
   NAVBAR - CONTON
========================================================== */

.topbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:64px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#0284C7;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 3px 14px rgba(0,0,0,.12);
    z-index:1050;
}

/* ==========================================================
   LADO ESQUERDO
========================================================== */

.topbar-left{
    display:flex;
    align-items:center;
    gap:18px;
    width:270px;
    min-width:270px;
    padding:0 20px;
}

.topbar-right{
    flex:1;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:16px;
    padding:0 24px;
}

/* ==========================================================
   BOTÃO MENU
========================================================== */

.btn-toggle-sidebar{
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    transition:.2s;
}

.btn-toggle-sidebar:hover{
    background:rgba(255,255,255,.12);
}

/* ==========================================================
   LOGO
========================================================== */

.navbar-logo{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.navbar-logo img{
    display:block;
    height:42px;
    width:auto;
}

/* ==========================================================
   BOTÕES
========================================================== */

.top-pill{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:12px;
    text-decoration:none;
    font-size:.92rem;
    font-weight:500;
    color:#fff;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
    transition:.2s;
}

.top-pill:hover{
    background:rgba(255,255,255,.15);
    color:#fff;
}

.top-pill i{
    font-size:16px;
}

/* ==========================================================
   USUÁRIO
========================================================== */

.user-pill{
    display:flex;
    align-items:center;
    gap:12px;
    padding:6px 10px;
    border-radius:14px;
    text-decoration:none;
    color:#fff;
    transition:.2s;
    cursor:pointer !important;
}

.user-pill:hover{
    background:rgba(255,255,255,.12);
}

.user-icon{
    font-size:34px;
    color:#fff;
    flex-shrink:0;
    transition:.2s;
}

.user-pill:hover .user-icon{
    transform:scale(1.08);
}

.user-info{
    display:flex;
    flex-direction:column;
    line-height:1.2;
}

.user-label{
    font-size:.72rem;
    color:rgba(255,255,255,.70);
}

.user-name{
    font-size:.92rem;
    font-weight:600;
    color:#fff;
}

/* ==========================================================
   DROPDOWN
========================================================== */

.profile-dropdown{
    width:280px;
    border:0;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.profile-header{
    display:flex;
    align-items:center;
    gap:16px;
    padding:24px;
    background:#f8fafc;
}

.profile-avatar{
    width:60px;
    height:60px;
    border-radius:50%;
}

.profile-name{
    font-weight:600;
    color:#1e293b;
}

.profile-email{
    font-size:.82rem;
    color:#94a3b8;
}

.profile-actions{
    display:flex;
    gap:10px;
    padding:18px;
}

.profile-actions .btn{
    flex:1;
}

/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width:991px){

    .topbar{
        padding:0 16px;
    }

    .topbar-right{
        gap:8px;
    }

    .top-pill span,
    .user-info{
        display:none;
    }

    .top-pill,
    .user-pill{
        width:42px;
        height:42px;
        padding:0;
        display:flex;
        justify-content:center;
        align-items:center;
        border-radius:50%;
    }

    .user-pill{
        width:auto;
        min-width:42px;
        padding:0 8px;
        gap:0;
    }

    .user-pill.dropdown-toggle::after{
        display:none;
    }

    .user-icon{
        font-size:28px;
    }

    .navbar-logo img{
        height:42px;
    }

}

@media (max-width:576px){

    .topbar{
        padding:0 10px;
    }

    .topbar-left{
        width:auto;
        min-width:auto;
        gap:10px;
        padding:0;
    }

    .topbar-right{
        gap:4px;
        padding:0;
    }

    .navbar-logo img{
        height:36px;
    }

    .btn-toggle-sidebar{
        width:36px;
        height:36px;
    }

    .top-pill,
    .user-pill{
        width:36px;
        height:36px;
    }

    .user-icon{
        font-size:24px;
    }

}