
body {
  min-height: 100vh;
}

.pp-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(154, 68, 45, 0.13), transparent 34rem),
    linear-gradient(135deg, #fbf8ff 0%, #edecff 52%, #dfe0ff 100%);
  color: #161a32;
}

.pp-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.pp-login-card {
  width: min(100%, 440px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(136, 114, 109, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(43, 46, 72, 0.14);
  padding: 32px;
}

.pp-login-kicker {
  color: #9a442d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Layout principal */
.wrapper {
  margin-top: 56px;
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar escura */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #1b1b1b;
  color: #e6e6e6;
  border-right: 1px solid #111;
  transition: width 0.25s ease;
  padding-top: 4px;
}

.sidebar h6 {
  color: #bdbdbd !important;
  font-size: 0.75rem;
  margin: 8px 0 10px;
}

.sidebar .nav-link {
  color: #cfcfcf;
  border-radius: 0.75rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: 0.2s;
}

.sidebar .nav-link:hover {
  background: #333333;
  color: #ffffff;
}

.sidebar .nav-link.active {
  background: #0b5ed7;
  color: #ffffff;
}

.sidebar .nav-link i {
  font-size: 1.2rem;
  color: #ffffff;
}

.sidebar-toggle-inside {
  background: #2d2d2d;
  border: 1px solid #444;
  color: #ffffff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.25s;
}

/* Sidebar colapsada */
body.sidebar-collapsed .sidebar {
  width: 72px;
}

body.sidebar-collapsed .sidebar .nav-link {
  justify-content: center;
}

body.sidebar-collapsed .sidebar .sidebar-label,
body.sidebar-collapsed .sidebar h6 {
  display: none;
}

/* Hover para expandir em modo colapsado (desktop) */
body.sidebar-collapsed .sidebar:hover {
  width: 260px;
}

body.sidebar-collapsed .sidebar:hover .sidebar-label,
body.sidebar-collapsed .sidebar:hover h6 {
  display: block !important;
}

body.sidebar-collapsed .sidebar:hover .nav-link {
  justify-content: flex-start;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  padding: 24px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Rodapé */
footer {
  border-top: 1px solid #dee2e6;
  background: #ffffff;
}

/* Páginas internas (iframe) */
body.iframe-page {
  background-color: #f8f9fa;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge-status {
  font-size: 0.7rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    z-index: 1030;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
  }

  body.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .main-content {
    padding: 16px;
  }
}
