/* ─── Global Styles ─────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  color: var(--dark);
  background: var(--gray-lighter);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--dark);
}

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-lighter);
}

::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}

/* Main layout wrapper */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  gap: var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.app-content {
  flex: 1;
  padding: var(--space-xl);
  overflow-y: auto;
}

/* Page header */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  background: var(--primary-lighter);
  padding: .25rem .6rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--dark);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Utilitários de escala tipográfica */
.text-h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.text-h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.text-h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.25; }
.text-h4 { font-size: var(--text-h4); font-weight: 600; line-height: 1.3; }

/* Section */
.section {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-md);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: var(--space-xl) 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--gray);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
