* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar global */
* { scrollbar-width: thin; scrollbar-color: #ffffff18 transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff18; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ffffff35; }
::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  background: #0a0a0f;
  color: #1a1a1a;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital@0;1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital@0;1&display=swap');

@font-face {
  font-family: 'SF Pro';
  src: url('../fonts/SF-Pro.woff2') format('woff2');
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  gap: 20px;
  animation: preloaderIn .4s ease;
}

.preloader-logo {
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255,255,255,.08);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin .65s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes preloaderIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Transição de entrada das páginas */
#app > :first-child:not(.preloader) {
  animation: pageIn .3s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Login — layout duas colunas
   ============================================================ */
.page-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 75% 25%;
}

/* lado esquerdo — gradiente */
.login-banner {
  /*https://br.freepik.com/fotos/empresario-trabalhando-praia/2#uuid=8622de24-c15f-45a6-90da-632d873f3a31*/
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('./images/66aefe20-bdaa-4d4e-b471-6353ad743de0.png');
  background-repeat: no-repeat; /* Evita repetição */
  background-size: cover; /* Ajusta a imagem à tela */
  background-position: center; /* Centraliza */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* .login-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

.login-banner-logo {
  /*font-family: "Playfair Display", serif;*/
  /* font-family: "Aleo", serif; */
  font-family: "Aleo";
  font-size: 25px;
  font-weight: 400;
  /* font-style: italic; */
  color: #fff;
  letter-spacing: 0px;
  z-index: 1;
  text-align: center;
}

/* lado direito — formulário */
.login-box {
  background: #1c1c1e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  gap: 16px;
  min-height: 100vh;
}

.login-box-logo {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.login-box h1 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.login-box label {
  font-size: 13px;
  color: #ebebf5cc;
  margin-bottom: -8px;
}

.login-box input {
  padding: 12px 14px;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  background: #2c2c2e;
  outline: none;
  transition: all 0.2s;
}

.login-box input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.login-box input::placeholder {
  color: #636366;
}

.login-esqueci {
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  text-align: left;
  margin-top: -8px;
}

.login-esqueci:hover {
  text-decoration: underline;
}

.login-box button {
  margin-top: 4px;
  padding: 13px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box button:hover {
  background: #6d28d9;
}

.login-box button:disabled {
  background: #4c1d95;
  cursor: not-allowed;
  opacity: 0.6;
}

/* rodapé — link simples sem caixa */
.login-cadastro {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
}

.login-cadastro-texto {
  display: flex;
  gap: 6px;
  align-items: center;
}

.login-cadastro-texto p {
  font-size: 13px;
  color: #636366;
}

.login-cadastro-texto a {
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
}

.login-cadastro-texto a:hover {
  text-decoration: underline;
}

.login-cadastro span {
  display: none;
}

.btn-google {
  padding: 12px;
  background: #2c2c2e;
  color: #fff;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.6;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #636366;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3a3a3c;
}

.erro {
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.2);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.aviso {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  color: #60a5fa;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.aviso strong { color: #93bbfc; }
.aviso-ok {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.2);
  color: #4ade80;
}
.aviso-ok strong { color: #86efac; }

.register-termos {
  font-size: 12px;
  color: #636366;
  line-height: 1.6;
}

.register-termos a {
  color: #7c3aed;
  text-decoration: none;
}

.register-termos a:hover {
  text-decoration: underline;
}

/* input com erro */
.input-erro {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.campo-erro {
  font-size: 12px;
  color: #ef4444;
  margin-top: -8px;
  display: none;
}

/* input row — campo + botão olho */
.input-row {
  position: relative;
}

.input-row input {
  width: 100%;
  padding-right: 44px;
}

.btn-olho {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #636366;
  margin: 0;
  width: auto;
}

.btn-olho svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: color .2s;
}

.btn-olho:hover {
  color: #7c3aed;
  background: transparent;
}

.login-box .btn-olho {
  margin-top: 0;
  padding: 4px;
  background: transparent;
  width: auto;
}

.login-box .btn-olho:hover {
  background: transparent;
}

/* checklist de regras de senha */
.rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  padding: 0;
  margin: 0;
}

.rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #636366;
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3c;
  flex-shrink: 0;
}

.rule.ok {
  color: #22c55e;
}

.rule.ok .dot {
  background: #22c55e;
}

/* input ok */
.input-ok {
  border-color: #22c55e !important;
}

/* checkbox termos */
.register-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #636366;
  line-height: 1.5;
  cursor: pointer;
  flex-wrap: nowrap;
}

.register-checkbox span {
  display: inline;
}

.register-checkbox input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.register-checkbox a {
  color: #7c3aed;
  text-decoration: none;
}

.register-checkbox a:hover {
  text-decoration: underline;
}

/*
.login-box label        { margin-top: 16px; margin-bottom: 6px; }
.login-box input        { margin-bottom: 0; }
.login-box button       { margin-top: 16px; }
.login-box .btn-google  { margin-top: 0; }
.login-box .login-divider { margin-top: 16px; }
.login-box .campo-erro  { margin-top: 4px; margin-bottom: 0; }
.login-box .rules       { margin-top: 10px; }
.login-box .rules + .campo-erro { margin-top: 4px; }
.login-box .login-cadastro { margin-top: 16px; }
.login-box .login-box-logo { margin-bottom: 24px; }
.login-box h1           { margin-bottom: 16px; }
.login-box .erro        { margin-bottom: 8px; }
.login-box .register-checkbox { margin-top: 16px; }
.login-box .login-esqueci { margin-top: 4px; }
*/

/* ============================================================
   Dashboard — Layout
   ============================================================ */
.dash-layout {
  display: grid;
  grid-template-columns: 60px 1fr;
  min-height: 100vh;
  background: #f7f7f8;
}

/* ============================================================
   Sidebar
   ============================================================ */
.dash-sidebar {
  background: #fff;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 100vh;
}

.dash-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.dash-sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dash-sidebar.expandida .dash-sidebar-bottom {
  align-items: center;
  padding: 0 10px;
}

.dash-logo {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.dash-nav-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #999;
  text-decoration: none;
  transition: all 0.2s;
}

.dash-nav-item svg {
  width: 20px;
  height: 20px;
}

.dash-nav-item:hover {
  background: #f3f0ff;
  color: #7c3aed;
}

.dash-nav-item.ativo {
  background: #f3f0ff;
  color: #7c3aed;
}

/* avatar do usuário */
.dash-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

.dash-avatar-inicial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.dash-avatar-info {
  display: none;
  flex-direction: column;
}

.dash-sidebar.expandida .dash-avatar-info {
  display: flex;
}

.dash-avatar:hover {
  opacity: 0.8;
}

.dash-logo-nome,
.dash-logo-role,
.dash-avatar-info p {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

.dash-logo-nome,
.dash-avatar-info .dash-logo-nome {
  font-size: 13px;
  font-weight: 600;
}

.dash-logo-role,
.dash-avatar-info .dash-logo-role {
  font-size: 12px;
  color: #999;
}

/* ============================================================
   Conteúdo principal
   ============================================================ */
.dash-main {
  margin-left: 60px;
  padding: 40px;
  color: #1a1a1a;
}

.dash-header {
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.dash-header p {
  font-size: 14px;
  color: #999;
}

/* ============================================================
   Cards
   ============================================================ */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-card-label {
  font-size: 13px;
  color: #999;
}

.dash-card-valor {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ============================================================
   Tooltip sidebar
   ============================================================ */
.dash-tooltip {
  position: fixed;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
}

/* ============================================================
   Modal do usuário
   ============================================================ */
.dash-user-modal {
  position: absolute;
  bottom: 60px;
  left: 60px;
  width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 9999;
}


.dash-user-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.dash-user-modal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.dash-user-modal-nome {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.dash-user-modal-email {
  font-size: 11px;
  color: #999;
}

.dash-user-modal-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 0;
}

.dash-user-modal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.dash-user-modal-item:hover {
  background: #f5f5f5;
}

.dash-user-modal-sair {
  color: #ef4444;
}

.dash-user-modal-sair:hover {
  background: #fff0f0;
}

.dash-user-modal.modal-entrando {
  animation: modalEntrar 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dash-user-modal.modal-saindo {
  animation: modalSair 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEntrar {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalSair {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}


.dash-main {
  min-width: 0;
}

.dash-header h1 {
  white-space: nowrap;
}

.dash-header p {
  white-space: nowrap;
}

/* ============================================================
   Sidebar expandida
   ============================================================ */
.dash-sidebar {
  transition: width 0.25s ease;
  overflow: visible;
}

.dash-sidebar.expandida {
  width: 200px;
}

.dash-nav-label {
  display: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.dash-sidebar.expandida .dash-nav-label {
  display: block;
}

.dash-sidebar.expandida .dash-nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0 16px;
  gap: 10px;
  border-radius: 8px;
}

.dash-main {
  transition: margin-left 0.25s ease;
}

.dash-main.expandida {
  margin-left: 200px;
}

.dash-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  color: #999;
  background: transparent;
  border: none;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.dash-toggle:hover {
  background: #f3f0ff;
  color: #7c3aed;
}

.dash-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.dash-sidebar.expandida .dash-toggle svg {
  transform: rotate(180deg);
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 768px) {
  .dash-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-main {
    padding: 24px 16px;
  }
}

/* ============================================================
   Responsivo — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .page-login {
    grid-template-columns: 1fr;
  }

  .login-banner {
    display: none;
  }

  .login-box {
    padding: 48px 24px;
    min-height: 100vh;
  }
}