:root{
  --sidebar-w: 280px;
  --bg-soft: #f5f7fb;
}

.auth-bg{
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(25,135,84,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

/* Centralização da tela de login é feita no layout com Bootstrap utilities */

.app-body{
  background: var(--bg-soft);
}

.app-shell{
  display: flex;
  min-height: 100vh;
}

.app-sidebar{
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-brand{
  padding: 14px 14px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand-logo{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}
.brand-logo img{ width: 32px; height: 32px; }
.brand-logo--big{
  width: 120px;
  height: 64px;
  border-radius: 16px;
  background: transparent;
}
.brand-logo--big img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-brand{
  justify-content: center;
  text-align: center;
  position: relative;
}
.sidebar-brand .sidebar-toggle{
  position: absolute;
  right: 14px;
  top: 14px;
}
.brand-text{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-name{ font-size: 13px; }
.brand-sub{ font-size: 11px; }
.brand-text{ line-height: 1.15; }
.brand-name{ font-weight: 700; }
.brand-sub{ color: #6c757d; }
.sidebar-toggle{ border: 1px solid rgba(0,0,0,.06); }

.sidebar-nav{
  padding: 12px;
  overflow: auto;
}
.sidebar-nav .nav-link{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 12px;
  color: #212529;
  text-decoration: none;
}
.sidebar-nav .nav-link:hover{
  background: rgba(13,110,253,.08);
  color: #0d6efd;
}
.sidebar-nav .nav-link.disabled{
  opacity: .55;
  pointer-events: none;
}
.nav-section{
  margin: 14px 8px 6px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6c757d;
}

.sidebar-footer{
  padding: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.app-main{
  flex: 1;
  min-width: 0;
}
.app-topbar{
  height: 64px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.topbar-title{
  font-weight: 700;
  font-size: 16px;
}
.topbar-avatar{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: #495057;
}

.kpi-card{
  border-radius: 16px;
}
.kpi-icon{
  font-size: 28px;
}

/* Mobile */
@media (max-width: 992px){
  .app-sidebar{
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1050;
  }
  .app-sidebar.open{
    transform: translateX(0);
  }
}

