:root {
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Cores neumórficas - tons neutros mais próximos do exemplo */
  --bg: #e6e7ee;
  --surface: #e6e7ee;
  --surface-muted: #dfe1e7;
  --surface-elevated: #e6e7ee;
  --border: rgba(163, 177, 198, 0.15);

  /* Texto com contraste adequado para neumorphism */
  --text-primary: #4c566a;
  --text-secondary: #6c727f;
  --muted: #9ca3af;

  /* Cores de destaque neumórficas */
  --accent: #667eea;
  --accent-soft: rgba(102, 126, 234, 0.1);
  --accent-strong: rgba(102, 126, 234, 0.2);
  --secondary: #10b981;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Sombras neumórficas verdadeiras - duplas (clara e escura) */
  --shadow-light: #ffffff;
  --shadow-dark: #a3b1c6;

  --shadow-neumorphic: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  --shadow-neumorphic-inset: inset 9px 9px 16px var(--shadow-dark), inset -9px -9px 16px var(--shadow-light);
  --shadow-neumorphic-small: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  --shadow-neumorphic-small-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

[data-theme='dark'] {
  --bg: #222222;
  --surface: #222222;
  --surface-muted: #1c1c1c;
  --surface-elevated: #2a2a2a;
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --muted: #888888;
  --accent: #007acc;
  --accent-soft: rgba(0, 122, 204, 0.15);
  --accent-strong: rgba(0, 122, 204, 0.3);
  --secondary: #28a745;
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;

  /* Sombras neumórficas para tema escuro */
  --shadow-light: #262626;
  --shadow-dark: #111111;

  --shadow-neumorphic: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  --shadow-neumorphic-inset: inset 9px 9px 16px var(--shadow-dark), inset -9px -9px 16px var(--shadow-light);
  --shadow-neumorphic-small: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  --shadow-neumorphic-small-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header neumórfico */
.neu-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-neumorphic-small);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.neu-nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
}

.neu-nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.neu-nav-link.is-active {
  color: #7a7a7a;
  background: var(--surface);
  font-weight: 600;
  box-shadow: var(--shadow-neumorphic-small-inset);
}

.neu-nav-link:active {
  color: #4c5d7a;
  transform: scale(0.98);
  background: #d0d5dd;
  box-shadow: inset 3px 3px 8px #a3b1c6, inset -3px -3px 8px #ffffff;
}

/* === BOTÕES NEUMÓRFICOS === */
/* Base - todos os botões */
.neu-button {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  position: relative;
  outline: none;
}
.neu-button:focus {
  outline: none;
}

/* Botão padrão neutro */
.neu-button {
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
}
.neu-button:hover {
  background: var(--surface-elevated);
}
.neu-button:active {
  color: #8b9bb0;
  box-shadow: inset 4px 4px 12px #a3b1c6, inset -4px -4px 12px #ffffff;
  transform: scale(0.98);
  background: #d0d5dd;
}

/* Variações de tamanho */
.neu-button.small {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* Botão ghost */
.neu-button.ghost {
  color: var(--text-secondary);
}
.neu-button.ghost:hover {
  color: var(--text-primary);
}

/* Botões coloridos */
.neu-button.primary {
  color: #ffffff;
  background: var(--accent);
}
.neu-button.primary:active {
  color: #3c4f9e;
  background: #5a6fcf;
  box-shadow: inset 4px 4px 12px #2c3a73, inset -4px -4px 12px #7284df;
  transform: scale(0.98);
}

.neu-button.success {
  color: #ffffff;
  background: var(--success);
}
.neu-button.success:active {
  color: #065a36;
  background: #0d9458;
  box-shadow: inset 4px 4px 12px #063d26, inset -4px -4px 12px #14c76a;
  transform: scale(0.98);
}

.neu-button.warning {
  color: #ffffff;
  background: var(--warning);
}
.neu-button.warning:active {
  color: #a85a04;
  background: #d97706;
  box-shadow: inset 4px 4px 12px #8b4d03, inset -4px -4px 12px #ff9408;
  transform: scale(0.98);
}

.neu-button.error {
  color: #ffffff;
  background: var(--error);
}
.neu-button.error:active {
  color: #991b1b;
  background: #dc2626;
  box-shadow: inset 4px 4px 12px #7f1d1d, inset -4px -4px 12px #ef4444;
  transform: scale(0.98);
}

/* Cards neumórficos */
.section-card {
  border-radius: 20px;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic);
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card h1,
.section-card h2,
.section-card h3 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.section-card p.description {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-1px);
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tabelas neumórficas */
.neu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
  border-radius: 16px;
}

.neu-table thead {
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.neu-table th,
.neu-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  border: none;
}

.neu-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.neu-table tbody tr:last-child {
  border-bottom: none;
}

.neu-table tbody tr:hover {
  background: var(--surface-muted);
}

/* Inputs neumórficos */
.neu-input,
.neu-select,
.neu-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  box-shadow: var(--shadow-neumorphic-small-inset);
}

.neu-input:focus,
.neu-select:focus,
.neu-textarea:focus {
  outline: none;
  box-shadow: var(--shadow-neumorphic-small-inset), 0 0 0 3px var(--accent-soft);
}

.neu-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Estilos de autofill para tema claro */
.neu-input:-webkit-autofill,
.neu-input:-webkit-autofill:hover,
.neu-input:-webkit-autofill:focus,
.neu-input:-webkit-autofill:active {
  -webkit-box-shadow: var(--shadow-neumorphic-small-inset), 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-color: var(--surface) !important;
  border-radius: 12px !important;
}

/* Estilos de autofill para tema escuro */
[data-theme='dark'] .neu-input:-webkit-autofill,
[data-theme='dark'] .neu-input:-webkit-autofill:hover,
[data-theme='dark'] .neu-input:-webkit-autofill:focus,
[data-theme='dark'] .neu-input:-webkit-autofill:active {
  -webkit-box-shadow: var(--shadow-neumorphic-small-inset), 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-color: var(--surface) !important;
  border-radius: 12px !important;
}

/* Estilos para inputs de data/hora */
.neu-input[type="date"],
.neu-input[type="datetime-local"],
.neu-input[type="time"] {
  color-scheme: light;
}

[data-theme='dark'] .neu-input[type="date"],
[data-theme='dark'] .neu-input[type="datetime-local"],
[data-theme='dark'] .neu-input[type="time"] {
  color-scheme: dark;
}

/* Correção para calendário no tema escuro */
[data-theme='dark'] .neu-input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme='dark'] .neu-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme='dark'] .neu-input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Status badges limpos */
.neu-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.neu-status.success {
  background: var(--success);
  color: white;
}

.neu-status.warning {
  background: var(--warning);
  color: white;
}

.neu-status.error {
  background: var(--error);
  color: white;
}

.neu-status.pending {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-weight: 600;
}

/* Toast mais suave */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: var(--shadow-strong);
  display: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* Modal limpo */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 90;
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
  width: min(900px, 95vw);
  max-height: 90vh;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay[style*="flex"] .modal-content {
  transform: scale(1);
}

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

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  background: var(--surface);
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small-inset);
}

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

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Lista de membros */
.members-list,
.data-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-item,
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  gap: 1rem;
  transition: all 0.2s ease;
}

.member-item:hover,
.data-row:hover {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
}

.member-details h4,
.data-primary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
}

.member-details p,
.data-secondary {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Ações */
.data-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.icon-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.icon-button.error {
  color: var(--error);
}

.icon-button.error:hover {
  border-color: var(--error);
}

.icon-button:active {
  color: #4c5d7a;
  transform: scale(0.95);
  background: #d0d5dd;
  border-color: #a3b1c6;
  box-shadow: inset 2px 2px 6px #a3b1c6, inset -2px -2px 6px #ffffff;
}

.icon-button.error:active {
  color: #991b1b;
  background: #fecaca;
  border-color: #dc2626;
  box-shadow: inset 2px 2px 6px #b91c1c, inset -2px -2px 6px #fee2e2;
}

/* === SELETOR DE TEMA === */
.theme-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small-inset);
}

.theme-option {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  outline: none;
}
.theme-option:focus {
  outline: none;
}

.theme-option svg {
  width: 16px;
  height: 16px;
}

.theme-option:hover {
  background: var(--surface-elevated);
}

.theme-option:active {
  color: #8b9bb0;
  transform: scale(0.95);
  background: #d0d5dd;
  box-shadow: inset 4px 4px 12px #a3b1c6, inset -4px -4px 12px #ffffff;
}

.theme-option.active {
  background: var(--accent);
  color: white;
  transform: scale(0.95);
  box-shadow: inset 2px 2px 7px rgba(0, 0, 0, 0.5);
}

/* Formulários */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Estados vazios */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.status-dot.ok {
  background: var(--success);
}

.status-dot.warn {
  background: var(--warning);
}

.status-dot.error {
  background: var(--error);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.auth-card {
  width: min(400px, 100%);
  border-radius: 8px;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-outset);
  border: 1px solid var(--border);
}

.auth-card h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

/* Media queries */
@media (max-width: 1024px) {
  .neu-header-inner {
    height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-container {
    width: 95vw;
    padding-top: 1rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .neu-table th,
  .neu-table td {
    padding: 0.75rem 1rem;
  }

  .modal-content {
    border-radius: 6px;
  }

  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }

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

@media (max-width: 560px) {
  .member-item,
  .data-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .data-actions,
  .table-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .neu-button {
    justify-content: center;
  }
}

/* Transições de página */
.page-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animações suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic);
  display: none;
  overflow: hidden;
  z-index: 40;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu button,
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-menu button svg,
.dropdown-menu a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dropdown-menu button:hover,
.dropdown-menu a:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

/* Container JSON neumórfico */
.json-container {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic);
  margin-top: 1.5rem;
}

/* Área de visualização JSON/Tabela */
.log-area {
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small-inset);
  border-radius: 12px;
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-primary);
  max-height: 400px;
  overflow-y: auto;
}

/* === AJUSTES ESPECÍFICOS PARA TEMA ESCURO === */
/* No tema escuro, botões usam cores MAIS CLARAS quando pressionados */

[data-theme='dark'] .neu-button:active {
  color: #e5e5e5;
  background: #2a2a2a;
  box-shadow: inset 4px 4px 12px #111111, inset -4px -4px 12px #333333;
}

[data-theme='dark'] .neu-button.primary:active {
  color: #66b3ff;
  background: #0099ff;
  box-shadow: inset 4px 4px 12px #0066cc, inset -4px -4px 12px #33aaff;
}

[data-theme='dark'] .neu-button.success:active {
  color: #66dd88;
  background: #33cc66;
  box-shadow: inset 4px 4px 12px #228844, inset -4px -4px 12px #44ee77;
}

[data-theme='dark'] .neu-button.warning:active {
  color: #ffdd66;
  background: #ffcc33;
  box-shadow: inset 4px 4px 12px #cc9911, inset -4px -4px 12px #ffee55;
}

[data-theme='dark'] .neu-button.error:active {
  color: #c21d1d;
  background: #ff4444;
  box-shadow: inset 4px 4px 12px #aa1c1c, inset -4px -4px 12px #802525;
}

[data-theme='dark'] .neu-nav-link:active {
  color: #e5e5e5;
  background: #2a2a2a;
  box-shadow: inset 3px 3px 8px #111111, inset -3px -3px 8px #333333;
}

[data-theme='dark'] .icon-button:active {
  color: #e5e5e5;
  background: #2a2a2a;
  border-color: #444444;
  box-shadow: inset 2px 2px 6px #111111, inset -2px -2px 6px #333333;
}

[data-theme='dark'] .icon-button.error:active {
  color: #ff6666;
  background: #443333;
  border-color: #ff4444;
  box-shadow: inset 2px 2px 6px #332222, inset -2px -2px 6px #554444;
}

[data-theme='dark'] .theme-option:active {
  color: #e5e5e5;
  background: #2a2a2a;
  box-shadow: inset 4px 4px 12px #111111, inset -4px -4px 12px #333333;
}

/* Loading Wave Animation for Buttons */
.loading-wave-small {
  width: 60px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5px;
}

.loading-bar-small {
  width: 4px;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
  animation: loading-wave-small-animation 1s ease-in-out infinite;
}

.loading-bar-small:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-bar-small:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-bar-small:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes loading-wave-small-animation {
  0% {
    height: 3px;
  }
  50% {
    height: 12px;
  }
  100% {
    height: 3px;
  }
}

/* Checkbox Neumorphism */
.neu-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-neumorphic-small);
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s ease;
  flex-shrink: 0;
  border: none;
}

.neu-checkbox:checked {
  background: var(--accent);
  box-shadow: var(--shadow-neumorphic-small);
}

.neu-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.neu-checkbox:active {
  box-shadow: var(--shadow-neumorphic-small-inset);
}

.neu-checkbox:checked:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .neu-checkbox {
  background: var(--surface);
  box-shadow: 5px 5px 10px #0f0f0f, -5px -5px 10px #353535;
}

[data-theme='dark'] .neu-checkbox:checked {
  background: var(--accent);
  box-shadow: 5px 5px 10px #0f0f0f, -5px -5px 10px #353535;
}

[data-theme='dark'] .neu-checkbox:active {
  box-shadow: inset 5px 5px 10px #0f0f0f, inset -5px -5px 10px #353535;
}

[data-theme='dark'] .neu-checkbox:checked:active {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.03);
}

/* Gradient Button */
.neu-button.gradient-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: var(--shadow-neumorphic) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-button.gradient-button:active {
  color: rgba(0, 0, 0, 0.5);
  box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.3), inset -4px -4px 12px rgba(255, 255, 255, 0.05) !important;
  transform: scale(0.98);
}

[data-theme='dark'] .neu-button.gradient-button {
  background: linear-gradient(135deg, #5568d3 0%, #5f3a88 100%);
  box-shadow: 9px 9px 16px #0f0f0f, -9px -9px 16px #353535 !important;
}

[data-theme='dark'] .neu-button.gradient-button:active {
  color: rgba(0, 0, 0, 0.5);
  box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.4), inset -4px -4px 12px rgba(255, 255, 255, 0.03) !important;
  transform: scale(0.98);
}