/* ===== RESET GLOBAL ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== LINKS / BOTÕES BASE ===== */
a {
    color: #006bb7;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* =========================================
   LOGIN (TELA BONITA)
   ========================================= */

/* fundo com imagem + efeito “marca d’água” */
.login-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background-image:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url('/images/login-bg.jpeg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* card do login */
.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 28px 24px;

    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.30);
}

/* logo + nome no canto superior direito do card */
.login-logo {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-logo img {
    width: 26px; /* menor */
    height: auto;
}

.login-app-name {
    font-size: 14px;
    font-weight: 700;
    color: #1b1b1b;
    letter-spacing: 0.4px;
}

/* inputs */
.login-card .form-group {
    margin-bottom: 14px;
}

.login-card input,
.login-card .btn-login {
    width: 100%;
    box-sizing: border-box;
}


.login-card input:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27,110,194,0.15);
}

/* botão bonito */
.btn-login {
    width: 100%;
    padding: 10px 12px;
    background-color: #1b6ec2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.btn-login:hover {
    filter: brightness(0.92);
}

/* =========================================
   PAINEL (SIDEBAR + TOPBAR)
   ========================================= */

.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* sidebar */
.sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: linear-gradient(180deg, #0b1d3a, #3b0a57);
    transition: width 0.25s ease, flex-basis 0.25s ease;
    overflow: hidden;
}

/* sidebar fechada sem sobras */
.layout.sidebar-closed .sidebar {
    width: 0;
    flex-basis: 0;
}

/* área principal */
.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* topbar */
.topbar {
    height: 56px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e5e5;
}

/* hamburger */
.hamburger {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.hamburger:hover {
    background: rgba(0,0,0,0.06);
}

.app-name {
    font-weight: 600;
    font-size: 16px;
}

/* conteúdo com rolagem só aqui */
.content {
    padding: 24px;
    overflow: auto;
}

/* Nome do cliente na topbar */
.client-name {
  font-weight: 600;
  font-size: 15px;
}

/* Overlay escuro */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 999;
}

/* Drawer do cadastro */
.cadastro-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho do drawer */
.cadastro-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.cadastro-title {
  font-weight: 700;
}

/* Botão fechar */
.cadastro-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.cadastro-close:hover {
  background: rgba(0,0,0,.06);
}

/* Lista */
.cadastro-drawer-body {
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cadastro-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
}

.cadastro-item:hover {
  background: rgba(27,110,194,.10);
}

.cadastro-drawer-body hr {
  margin: 8px 0;
  opacity: .2;
}
