@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  /* Theme Colors - SaaS Modern Dark */
  --bg:        #0a0f0d;
  --surface:   #111a15;
  --surface2:  #172010;
  
  --green:     #2EC878;
  --green-dim: #1a7a47;
  
  --text:      #e8f0eb;
  --text2:     #8da898;
  --text3:     #4d6b57;
  
  --amber:     #f0a429;
  --red:       #e85555;
  --blue:      #4fa8e8;

  --border: rgba(46, 200, 120, 0.12);

  /* Dimensions */
  --topbar-height: 70px;
  --sidebar-width: 280px;
  
  /* Typography */
  --font-title: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Background Grain Layer */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text);
  font-weight: 600;
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: rgba(10, 15, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Logo with Pulse Dot */
.logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(46, 200, 120, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 200, 120, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 200, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 200, 120, 0); }
}

.top-nav {
  display: none;
}
@media (min-width: 768px) {
  .top-nav {
    display: flex;
    gap: 2rem;
  }
}
.top-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text2);
  font-weight: 500;
}
.top-nav a:hover, .top-nav a.active {
  color: var(--green);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 2rem;
}
.nav-group-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text2);
  font-weight: 500;
}
.nav-link:hover {
  background: var(--surface2);
  color: var(--text);
}
.nav-link.active {
  background: rgba(46, 200, 120, 0.08);
  color: var(--green);
  border: 1px solid var(--border);
}

/* ── Main Content ── */
.main-wrapper {
  margin-top: var(--topbar-height);
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 4rem 3rem;
}

.content {
  max-width: 900px;
  width: 100%;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.content p {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Componentes */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 200, 120, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Progress Component */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  background: var(--surface2);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.progress-line {
  position: absolute;
  top: 50%;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: var(--border);
  z-index: 1;
  transform: translateY(-50%);
}
.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text3);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.step-label {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 500;
}

.progress-step.done .step-circle {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--bg);
}
.progress-step.done .step-label {
  color: var(--text2);
}
.progress-step.active .step-circle {
  background: var(--bg);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 16px rgba(46, 200, 120, 0.4);
}
.progress-step.active .step-label {
  color: var(--green);
}

/* Alertas */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
.alert-tip {
  border-left: 3px solid var(--green);
}
.alert-tip .alert-title { color: var(--green); }
.alert-warning {
  border-left: 3px solid var(--amber);
}
.alert-warning .alert-title { color: var(--amber); }

.alert-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-title);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.btn:hover {
  background: var(--surface2);
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.btn-primary:hover {
  background: #36db85;
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(46,200,120,0.3);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green {
  background: rgba(46, 200, 120, 0.15);
  color: var(--green);
}

/* Cards Grid Layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card h3 i {
  color: var(--green);
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 90;}
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; padding: 2rem 1.5rem; }
  .mobile-menu-btn { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu-btn { display: none; }
}
@media (max-width: 600px) {
  .main-wrapper { padding: 1.5rem 1rem; }
  .content h1 { font-size: 2.2rem; }
}
