/* ==========================================================================
   1. VARIÁVEIS DE TEMA (MODO ESCURO POR PADRÃO)
   ========================================================================== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-tertiary: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #333333;
  --hover-bg: #282828;
  --active-bg: #383838;
  --shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

/* Modo Claro */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-tertiary: #e9e9e9;
  --text-primary: #000000;
  --text-secondary: #555555;
  --border-color: #cccccc;
  --hover-bg: #e0e0e0;
  --active-bg: #d0d0d0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

/* ==========================================================================
   3. CABEÇALHO & LOGO FIXO
   ========================================================================== */
.app-header {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(1);
}

[data-theme="light"] .logo-img {
  filter: invert(0);
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: var(--hover-bg);
}

/* ==========================================================================
   4. NAVEGAÇÃO POR ABAS
   ========================================================================== */
.app-main {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.tabs-nav::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.tab-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tab-btn:hover {
  background-color: var(--hover-bg);
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ==========================================================================
   5. CONTEÚDO DAS ABAS & LISTAS
   ========================================================================== */
.tab-pane {
  display: none;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

.section-subtitle:first-of-type {
  margin-top: 0;
}

.shortcuts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-key {
  font-family: monospace;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.shortcut-desc {
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.4;
}
