/* ==========================================================================
   GUIA ACADÊMICO DE TÉCNICA DIETÉTICA E GASTRONOMIA - CENTRO UNIVERSITÁRIO FAG
   Design System & Theme Stylesheet
   ========================================================================== */

/* Fonts (Fira Code, Inter, Outfit) are loaded via <link rel="stylesheet"> in index.html's
   <head>, with preconnect hints — faster than an @import here, which would be discovered
   only after this file downloads and block rendering an extra round-trip. */

:root {
  /* Theme Tokens - Light Mode (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-sidebar: #0f172a;
  --text-sidebar: #e2e8f0;
  --text-sidebar-muted: #94a3b8;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --brand-green: #0d5c3a;
  --brand-green-light: #10b981;
  --brand-green-bg: #ecfdf5;
  --brand-gold: #d97706;
  --brand-gold-bg: #fffbeb;
  --brand-accent: #2563eb;
  --brand-accent-bg: #eff6ff;

  --border-color: #e2e8f0;
  --border-focus: #10b981;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --sidebar-width: 320px;
  --topbar-height: 70px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  
  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --brand-green: #10b981;
  --brand-green-light: #34d399;
  --brand-green-bg: rgba(16, 185, 129, 0.12);
  --brand-gold: #f59e0b;
  --brand-gold-bg: rgba(245, 158, 11, 0.12);
  --brand-accent: #3b82f6;
  --brand-accent-bg: rgba(59, 130, 246, 0.12);

  --border-color: #1e293b;
  --border-focus: #34d399;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

/* Layout App Shell */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.institutional-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0d5c3a 0%, #10b981 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.header-info h1 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.header-info p {
  font-size: 0.75rem;
  color: var(--text-sidebar-muted);
  margin-top: 0.2rem;
}

/* Search Box in Sidebar */
.search-container {
  padding: 1rem 1.25rem 0.5rem;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-green-light);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sidebar-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1.5rem;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sidebar-muted);
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--text-sidebar-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--brand-green-light);
  border-left: 3px solid var(--brand-green-light);
  font-weight: 600;
}

.nav-item .chapter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
  min-width: 24px;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navigation Bar */
.top-bar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  backdrop-filter: blur(10px);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.reading-progress-container {
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d5c3a, #10b981);
  transition: width 0.1s ease-out;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-green-light);
  color: var(--brand-green-light);
}

.action-btn.btn-primary {
  background: linear-gradient(135deg, #0d5c3a 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.action-btn.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Main Reading Content Area */
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  width: 100%;
}

/* Chapter Typography & Structure */
.chapter-container {
  margin-bottom: 5rem;
  scroll-margin-top: calc(var(--topbar-height) + 2rem);
}

.chapter-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.chapter-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--brand-green-light);
}

.chapter-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--brand-green-bg);
  color: var(--brand-green-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.chapter-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Paragraphs & Headings */
p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* Custom Component Cards & Insights */
.insight-box {
  background: var(--brand-gold-bg);
  border-left: 4px solid var(--brand-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  position: relative;
}

.insight-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.insight-box p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 0.98rem;
  font-style: italic;
}

.academic-alert {
  background: var(--brand-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}

.academic-alert-icon {
  font-size: 1.5rem;
  color: var(--brand-green-light);
  flex-shrink: 0;
}

/* Formula & Math Display Cards */
.formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  text-align: center;
  backdrop-filter: blur(8px);
}

.formula-expression {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-green-light);
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.formula-explanation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tables Styling */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: var(--bg-secondary);
}

th {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* Dynamic Interactive Tool Widgets */
.interactive-tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.interactive-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d5c3a, #10b981, #3b82f6);
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  padding: 0.65rem 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-green-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Results Display Box */
.results-box {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border: 1px solid var(--border-color);
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green-light);
  margin-top: 0.2rem;
}

/* Lab Timer Display */
.timer-display {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--brand-green-light);
  margin: 1rem 0;
  letter-spacing: 0.05em;
  text-shadow: var(--shadow-glow);
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Interactive Checksheet */
.checksheet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checksheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checksheet-item:hover {
  border-color: var(--brand-green-light);
}

.checksheet-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-green-light);
  cursor: pointer;
}

/* SVG Diagrams & Infographics */
.diagram-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.diagram-svg-wrapper {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.diagram-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Shopping List Checkboxes */
.shopping-list-group {
  margin-bottom: 2rem;
}

.shopping-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.shopping-item input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Footer Styling */
.ebook-footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal Windows for Search and Tech Cards */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Toast Notifications (non-blocking alerts) */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-green-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: auto;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  color: var(--brand-green-light);
  margin-top: 0.15rem;
}

/* Print CSS Styles */
@media print {
  :root, [data-theme="dark"] {
    --bg-primary: #ffffff !important;
    --bg-secondary: #ffffff !important;
    --bg-card: #ffffff !important;
    --bg-card-hover: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #111111 !important;
    --text-muted: #444444 !important;
    --border-color: #bbbbbb !important;
    --shadow-sm: none !important;
    --shadow-md: none !important;
    --shadow-lg: none !important;
    --shadow-glow: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 2cm 1.5cm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .sidebar, 
  .top-bar, 
  .action-btn, 
  .timer-controls, 
  .theme-toggle, 
  .sidebar-overlay,
  .modal-overlay,
  .reading-progress-container,
  .menu-toggle,
  .hauslabs-actions,
  .shopping-checkbox,
  .audit-checkbox,
  .toast-container {
    display: none !important;
  }

  .app-container {
    display: block !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .chapter-container {
    page-break-before: always !important;
    break-before: page !important;
    padding: 1.5cm 0 0 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Prevent page breaks inside cards and tables */
  .insight-box, 
  .formula-card, 
  .interactive-tool-card, 
  .shopping-list-group, 
  .hauslabs-card, 
  .realistic-illustration-card,
  .ebook-illustration-wrapper,
  table, 
  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
  }

  th, td {
    padding: 8px 10px !important;
    border: 1px solid #dddddd !important;
    font-size: 10pt !important;
    color: #000000 !important;
    background: transparent !important;
  }

  th {
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
  }

  /* Print friendly inputs for calculators */
  .interactive-tool-card input.form-control,
  .interactive-tool-card input[type="number"],
  .interactive-tool-card input[type="text"] {
    border: none !important;
    border-bottom: 1px dashed #444444 !important;
    background: transparent !important;
    color: #000000 !important;
    padding: 2px 4px !important;
    font-weight: bold !important;
    width: 70px !important;
    display: inline-block !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .interactive-tool-card .tool-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
  }

  .interactive-tool-card .input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .interactive-tool-card .results-box {
    margin-top: 1.5rem !important;
    border-top: 1px solid #cccccc !important;
    padding-top: 1rem !important;
  }

  .results-box .result-item {
    border-bottom: 1px solid #eeeeee !important;
    padding: 6px 0 !important;
  }

  /* Grayscale adjustments for icons and headers */
  h1, h2, h3, h4, h5, h6 {
    color: #0d5c3a !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Remove shadows and custom background images */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }
}

/* Real Photographic Images Styling */
.ebook-illustration-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.ebook-illustration-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

.ebook-illustration-img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

.ebook-illustration-caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

/* Hauslabs Branding & Lead Capture System */
.haus-labs-card, .hauslabs-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 92, 58, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  margin: 4rem 0 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.haus-labs-card::before, .hauslabs-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.haus-labs-header, .hauslabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.haus-labs-logo-img, .hauslabs-logo-img {
  height: 42px;
  width: auto;
}

.haus-labs-tag, .hauslabs-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.haus-labs-title, .hauslabs-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.haus-labs-title span, .hauslabs-title span {
  color: #34d399;
}

.haus-labs-desc, .hauslabs-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.haus-labs-features, .hauslabs-features {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.haus-labs-feature-badge, .hauslabs-feature-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.haus-labs-actions, .hauslabs-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-haus-cta, .btn-hauslabs-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-haus-cta:hover, .btn-hauslabs-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-haus-secondary, .btn-hauslabs-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-haus-secondary:hover, .btn-hauslabs-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #34d399;
  color: #34d399;
}

.cover-haus-badge, .cover-hauslabs-badge {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Watermark System (Marca D'água Nutrição FAG a partir do Sumário) */
.chapter-container.with-watermark {
  position: relative;
}

.chapter-container.with-watermark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background-image: url('../assets/logo_nutricao_fag.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .chapter-container.with-watermark::before {
  opacity: 0.08;
  filter: brightness(1.2);
}

.chapter-container > * {
  position: relative;
  z-index: 1;
}

/* Cover FAG Brand Logo */
.cover-brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* --------------------------------------------------------------------------
   Ebook 3D "Top Model" Cover System
   -------------------------------------------------------------------------- */
.ebook-cover-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 4rem;
}

.ebook-cover-card {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(145deg, #092618 0%, #0d5c3a 50%, #061a10 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  position: relative;
  box-shadow: 
    -12px 16px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.3);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ebook-cover-card:hover {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.01);
  box-shadow: 
    -20px 25px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(16, 185, 129, 0.2);
}

.ebook-cover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.3) 100%);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.cover-header-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.cover-institution {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cover-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.cover-title-group {
  margin: 2.5rem 0 2rem;
}

.cover-main-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cover-main-title span {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  margin-top: 1rem;
  font-weight: 300;
  border-left: 3px solid #34d399;
  padding-left: 0.85rem;
  line-height: 1.5;
}

.cover-footer-info {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.8rem;
  color: #94a3b8;
}

.cover-docente {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Realistic Visual Illustration Cards */
.realistic-illustration-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.illustration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.illustration-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cut-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.cut-item:hover {
  transform: translateY(-3deg);
  border-color: var(--brand-green-light);
}

.cut-icon {
  font-size: 2rem;
  color: var(--brand-green-light);
  margin-bottom: 0.5rem;
}

.cut-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cut-size {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   MOBILE & TABLET AUTOMATIC RESPONSIVE SYSTEM (RWD)
   ========================================================================== */

/* 1. Global Viewport & Framing Safeguards */
html, body {
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Tablet & Medium Screen Adaptation (< 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    width: 300px;
    box-shadow: none;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-green-bg);
    color: var(--brand-green-light);
  }

  .top-bar {
    padding: 0 1.25rem;
  }

  .content-area {
    padding: 1.5rem 1.25rem;
  }

  .chapter-container {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }

  .ebook-cover-card {
    padding: 2.5rem 1.75rem;
  }

  .cover-main-title {
    font-size: 2rem;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Smartphone Adaptation (< 768px) */
@media (max-width: 768px) {
  .top-bar {
    height: 62px;
    padding: 0 0.85rem;
  }

  .top-bar-left span {
    font-size: 0.82rem !important;
  }

  .top-bar-right {
    gap: 0.35rem;
  }

  .top-bar-right .action-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .chapter-title {
    font-size: 1.4rem;
  }

  .chapter-subtitle {
    font-size: 0.9rem;
  }

  .ebook-cover-card {
    padding: 2rem 1.25rem;
  }

  .cover-main-title {
    font-size: 1.6rem;
  }

  .cover-subtitle {
    font-size: 0.88rem;
  }

  .cover-footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tool-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .interactive-tool-card {
    padding: 1.25rem 1rem;
  }

  .interactive-tool-card .results-box {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timer-display {
    font-size: 2.75rem;
  }

  .timer-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .timer-controls .action-btn {
    flex: 1 1 45%;
    justify-content: center;
  }

  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .table-responsive table {
    min-width: 540px;
  }

  .checksheet-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem;
  }

  .cut-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hauslabs-card {
    padding: 1.75rem 1.25rem;
  }

  .hauslabs-title {
    font-size: 1.3rem;
  }

  .hauslabs-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-hauslabs-cta, .btn-hauslabs-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* 4. Ultra-compact Screen Adaptation (< 480px) */
@media (max-width: 480px) {
  .top-bar-right .action-btn span {
    display: none;
  }

  .top-bar-right .action-btn {
    padding: 0.45rem 0.55rem;
  }

  .cover-header-tag {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cover-main-title {
    font-size: 1.35rem;
  }

  .cut-grid {
    grid-template-columns: 1fr;
  }

  .timer-controls .action-btn {
    flex: 1 1 100%;
  }

  .formula-expression {
    font-size: 1.2rem;
  }

  /* Reforço de enquadramento mobile para os 5 novos widgets */
  .scale-led-screen {
    font-size: 2.1rem !important;
  }

  .scale-food-btn {
    flex: 1 1 100% !important;
    text-align: center !important;
  }

  .scaler-badge-grid {
    grid-template-columns: 1fr !important;
  }

  .iddsi-btn {
    flex: 1 1 45% !important;
  }

  .anvisa-label-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .anvisa-lupa-badge {
    font-size: 0.78rem !important;
    padding: 0.5rem !important;
  }
}

/* ==========================================================================
   VERSÃO BETA — 5 NOVOS WIDGETS INTERATIVOS & ANIMAÇÕES
   ========================================================================== */

/* Badge Beta */
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* 1. Balança Digital LED Widget */
.scale-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.scale-display-container {
  background: #09130e;
  border: 3px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.scale-led-screen {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  letter-spacing: 0.05em;
}

.scale-led-unit {
  font-size: 1.2rem;
  color: #34d399;
  margin-left: 0.25rem;
}

.scale-status-tag {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scale-food-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.scale-food-btn {
  flex: 1 1 auto;
  padding: 0.5rem 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scale-food-btn.active, .scale-food-btn:hover {
  border-color: var(--brand-green-light);
  background: var(--brand-green-bg);
  color: var(--brand-green);
}

/* 2. Recipe Scaler UAN Widget */
.scaler-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.scaler-slider-wrapper {
  margin: 1.5rem 0;
}

.scaler-slider {
  width: 100%;
  accent-color: var(--brand-green-light);
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.scaler-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.scaler-badge-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.scaler-badge-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-green);
}

/* 3. IDDSI Consistency Selector */
.iddsi-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.iddsi-levels-grid {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.iddsi-btn {
  flex: 1 1 120px;
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.iddsi-btn.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.iddsi-card-detail {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

/* 4. Sensory Radar Widget */
.radar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.radar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .radar-layout {
    grid-template-columns: 1fr;
  }
}

.radar-svg-container {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

/* 5. ANVISA RDC 429/2020 Label Widget */
.anvisa-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.anvisa-label-box {
  background: #ffffff;
  color: #000000;
  border: 3px solid #000000;
  padding: 1rem;
  max-width: 340px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: var(--shadow-md);
}

.anvisa-label-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 4px solid #000000;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.anvisa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.anvisa-table th, .anvisa-table td {
  border-bottom: 1px solid #000000;
  padding: 4px 2px;
  color: #000000 !important;
  text-align: left;
}

.anvisa-lupa-badge {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: pulseLupa 2s infinite ease-in-out;
}

@keyframes pulseLupa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Print styles override for Beta Widgets */
@media print {
  .beta-badge {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
  }
  .scale-display-container {
    background: #ffffff !important;
    border: 1px solid #000 !important;
  }
  .scale-led-screen {
    color: #000000 !important;
    text-shadow: none !important;
  }
  .anvisa-label-box {
    box-shadow: none !important;
  }
}

/* --------------------------------------------------------------------------
   NOVAS ESTRUTURAS PEDAGÓGICAS 2026 (PRÁTICAS, BANCADAS, ANEXOS)
   -------------------------------------------------------------------------- */
.pratica-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pratica-card:hover {
  border-color: var(--brand-green-light);
  box-shadow: var(--shadow-md);
}

.pratica-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.pratica-badge {
  background: var(--brand-green);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.pratica-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.pratica-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-gold);
  font-weight: 600;
}

.bancadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.bancada-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.bancada-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-green-light);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  margin-top: auto;
}

.tech-word {
  background: rgba(37, 99, 235, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tech-excel {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tech-ia {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hedonic-scale-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.anexo-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}

.anexo-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-green-light);
  margin-bottom: 1rem;
}

.sensory-code-box {
  background: var(--bg-primary);
  border: 2px solid var(--brand-green);
  color: var(--brand-green-light);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  letter-spacing: 2px;
  box-shadow: var(--shadow-sm);
}

.prompt-code-box {
  background: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.code-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}



