@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove toque azul em mobile */
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  background-size: 300% 300%;
  animation: goldFlow 14s ease infinite;
  color: var(--text-main);
  transition: color 0.4s ease;
  line-height: 1.5;
  /* Scrollbar control for natural app feel */
  -ms-overflow-style: none; /* IE e Edge */
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari e Opera */
}

@keyframes goldFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contêiner Principal App */
#app {
  width: 100%;
  max-width: 100%; /* Forçado 100% para layout SaaS Real */
  margin: 0;
  min-height: 100vh;
  position: relative;
  background-color: transparent;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  #app {
    flex-direction: row; /* Coloca a Navbar e a Dashboard lado a lado fluidamente */
  }
  .with-sidebar {
    flex: 1; /* Preenche todo o resto do flex */
    max-width: calc(100% - 250px);
  }
}

/* Proteção SafeArea Mobile / Notch */
@media (max-width: 767px) {
  .with-sidebar {
    padding-top: calc(env(safe-area-inset-top, 24px) + 24px) !important;
  }
}

/* Tipografia Universal */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title-color);
}

p {
  color: var(--text-muted);
}

/* Botões Globais Minimalistas */
.btn-primary {
  background-color: var(--accent-green);
  color: var(--text-btn);
  border: none;
  padding: 14px var(--spacing-lg);
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px var(--accent-green-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-primary:active {
  transform: scale(0.97);
  background-color: var(--accent-green-hover);
}

/* Utilitários Visuais Mobile */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

/* Auth Layout (Mobile First + Padrão da Marca) */
.auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}
.auth-banner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-main);
}
.auth-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.auth-copyright {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
}
.auth-form-wrapper {
    background-color: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px 40px 0 0;
    padding: 50px 30px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    width: 100%;
}
.auth-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}
.auth-form-wrapper p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 35px;
}

/* Adaptações Desktop Sensíveis - Full HD Dashboard */
@media (min-width: 768px) {
    body {
        background-color: var(--bg-color);
    }

    /* Auth Layout Desktop Split */
    .auth-layout {
        flex-direction: row;
        background: transparent;
    }
    .auth-banner {
        flex: 1;
        padding: 80px;
        align-items: flex-start;
        text-align: left;
    }
    .auth-banner h1 {
        font-size: 4.5rem;
        letter-spacing: -2px;
    }
    .auth-form-wrapper {
        flex: 0 0 500px;
        width: 500px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
    }
}

