/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent-primary: #1b5ae6;
  --accent-primary-dark: #123caa;
  --accent-primary-light: #7caeff;
  --accent-primary-rgb: 27, 90, 230;
  --accent-primary-soft: rgba(var(--accent-primary-rgb), 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #ffffff;
  background: #000000;
  min-height: 100vh;
  font-weight: 400;
  touch-action: pan-x pan-y;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

/* Configurações de Contêiner */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Layout Principal com Sidebar */

.main-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #0f0f0f;
  border-right: 1px solid #333333;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1100;
  overflow-y: auto;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Desktop Sidebar - Always visible on desktop, hidden by default on mobile */
.desktop-sidebar {
  display: block;
  transform: translateX(-100%);
}

.desktop-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #333333;
  background: #0f0f0f;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-logo {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
}

.sidebar-nav {
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-title {
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.nav-item {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  position: relative;
  font-size: 0.8125rem;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent-primary);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

/* Rodapé da Sidebar */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid #333333;
  background: #0f0f0f;
  flex-shrink: 0;
}

/* Área Principal */
.main-content-area {
  flex: 1;
  margin-left: 240px;
  padding: 0;
  background: #000000;
}

/* Header superior simples */
.top-header {
  background: #0f0f0f;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  flex: 1;
  text-align: center;
}

/* Menu Sanduíche - Hidden by default, shown only on mobile */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #ffffff;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Botão de Logout */
.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #ffffff;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary-light);
}

.logout-btn i {
  font-size: 18px;
}

/* Overlay para fechar sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-content {
  padding: 1.25rem; /* Padding menor */
}

/* Dashboard específico */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #0f0f0f;
  text-align: center;
  padding: 1rem 0;
  color: #888888;
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: 0 -8px 32px rgba(var(--accent-primary-rgb), 0.2);
}

/* Mobile Footer Navigation */
.mobile-footer-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f0f0f;
  border-top: 2px solid rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 0.75rem 0.5rem 1.5rem 0.5rem; /* Padding-bottom ainda maior */
  height: 80px; /* Altura aumentada para acomodar o padding extra */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease-in-out;
}

.footer-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  color: #cccccc;
  transition: all 0.3s ease;
  flex: 1;
  position: relative;
  height: 48px; /* Altura fixa para centralizar ícone */
}

.footer-nav-link:hover {
  color: #ffffff;
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.footer-nav-link.active {
  color: var(--accent-primary-light);
  background: transparent;
}

.footer-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px 2px 0 0;
}

.footer-nav-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px rgba(var(--accent-primary-rgb), 0.3));
}

.footer-nav-text {
  display: none; /* Ocultar texto nos links de navegação */
}

/* Botão Central de Ação */
.center-action-btn-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: -12px 0; /* Fazer o botão "sair" da barra */
}

.center-action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary-dark) 100%);
  border: 4px solid #000000;
  box-shadow: 0 6px 25px rgba(var(--accent-primary-rgb), 0.6),
    0 0 0 6px rgba(var(--accent-primary-rgb), 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  transform: translateY(-8px);
}

.center-action-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 30px rgba(var(--accent-primary-rgb), 0.7),
    0 0 0 8px rgba(var(--accent-primary-rgb), 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.center-action-btn:active {
  transform: translateY(-6px) scale(0.98);
}

.center-action-btn.active {
  transform: translateY(-8px) rotate(45deg);
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary-dark) 100%);
  box-shadow: 0 8px 30px rgba(var(--accent-primary-rgb), 0.8),
    0 0 0 8px rgba(var(--accent-primary-rgb), 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.center-action-icon {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Balões de Ação */
.action-bubbles {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 1rem;
  z-index: 1000;
}

.action-bubbles.show {
  display: flex;
  animation: bubblesIn 0.4s ease-out;
}

@keyframes bubblesIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Menu Sanduíche do Footer */
.footer-menu-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.footer-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  color: #cccccc;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  height: 48px;
  width: 100%;
}

.footer-menu-btn:hover {
  color: #ffffff;
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.footer-menu-btn.active {
  color: var(--accent-primary-light);
  background: transparent;
}

.footer-menu-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px 2px 0 0;
}

.footer-menu-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0.5rem;
  background: #1a1a1a;
  border: 2px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 1002;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.footer-menu-dropdown.show {
  display: flex;
  animation: menuSlideUp 0.3s ease-out;
}

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

.footer-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: #cccccc;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.1);
}

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

.footer-menu-item:hover {
  color: #ffffff;
  background: rgba(var(--accent-primary-rgb), 0.2);
}

.footer-menu-item.active {
  color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb), 0.15);
}

.menu-item-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 5px rgba(var(--accent-primary-rgb), 0.3));
}

.menu-item-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.bubble-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  position: relative;
}

.bubble-option:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Balão de Receita */
.income-bubble {
  background: linear-gradient(135deg, #2c5caf 0%, #2c5caf 100%);
  border: 2px solid rgba(50, 69, 103, 0.3);
  box-shadow: 0 6px 20px rgba(50, 69, 103, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.income-bubble:hover {
  box-shadow: 0 8px 25px rgba(50, 69, 103, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.income-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: #2c5caf;
  border-right: 2px solid rgba(50, 69, 103, 0.3);
  border-bottom: 2px solid rgba(50, 69, 103, 0.3);
  transform: rotate(45deg);
}

/* Balão de Despesa */
.expense-bubble {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 2px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.expense-bubble:hover {
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.expense-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #dc2626;
  border-right: 2px solid rgba(220, 38, 38, 0.3);
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
  transform: rotate(45deg);
}

.bubble-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bubble-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Sistema de Grid Dashboard */
.dashboard {
  display: grid;
  gap: 2rem;
}

.dashboard-header {
  margin-bottom: 1rem;
}

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

.summary-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-primary-rgb), 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.summary-card:hover::before {
  left: 100%;
}

.summary-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 1), 0 0 30px rgba(var(--accent-primary-rgb), 0.5),
    0 0 60px rgba(var(--accent-primary-rgb), 0.2);
}

.summary-card h3 {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.summary-card .amount {
  font-size: 2rem;
  font-weight: 700;
}

.summary-card .amount.positive {
  color: #2c5caf;
}

.summary-card .amount.negative {
  color: #dc2626;
}

.summary-card .count {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

/* Dashboard Content Grid */
.dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .dashboard-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .dashboard-content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}

/* Cards */
.card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333333;
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  border-color: #444444;
}

.card h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

/* Formulários */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font-size: 16px !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Ajustes específicos para mobile */
@media (max-width: 768px) {
  input[type="number"] {
    font-size: 16px !important;
  }

  /* Melhorar área de toque */
  .footer-nav-link {
    height: 48px;
    padding: 0.5rem;
  }

  /* Ajustar botão central no mobile */
  .center-action-btn {
    width: 56px;
    height: 56px;
  }

  .center-action-icon {
    font-size: 24px;
  }

  /* Ajustar balões no mobile */
  .action-bubbles {
    gap: 0.75rem;
    bottom: 110px;
  }

  .bubble-option {
    padding: 0.75rem;
    min-width: 70px;
  }

  .bubble-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }

  .bubble-text {
    font-size: 0.75rem;
  }

  /* Melhorar modais no mobile */
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-content-area {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .page-content {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* Botões também precisam de font-size adequado */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.quick-action-btn,
.action-btn {
  font-size: 16px !important;
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #e2e8f0;
  position: relative;
  z-index: 2;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  background: #2a2a2a;
  border: 1px solid #444444;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary-light);
  box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.3),
    0 0 20px rgba(var(--accent-primary-rgb), 0.4);
  transform: translateY(-1px);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  top: -1px;
  left: 2px;
}

/* Botões */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Sistema de Botões Padronizado */
.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--accent-primary-dark);
}

.btn-secondary {
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #404040;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-secondary:hover {
  background: #333333;
  border-color: var(--accent-primary-light);
}

.btn-danger {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-danger:hover {
  background: var(--accent-primary-dark);
}

/* Lista de Contas */
.accounts-list {
  display: grid;
  gap: 1rem;
}

.account-item {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.account-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-primary-rgb), 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.account-item:hover::before {
  left: 100%;
}

.account-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 1), 0 0 25px rgba(var(--accent-primary-rgb), 0.4);
}

.account-info h3 {
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.account-type {
  color: #cccccc;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.account-currency {
  color: #cccccc;
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

.account-balance {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  color: #94a3b8;
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

.balance-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.balance-value.positive {
  color: #2c5caf;
}

.balance-value.negative {
  color: #dc2626;
}

.account-details {
  margin-top: 0.5rem;
}

.account-details small {
  color: #94a3b8;
}

/* Tabela de Transações */
.transactions-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #333333;
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 1), 0 0 20px rgba(var(--accent-primary-rgb), 0.2);
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.transactions-table th {
  background: #2a2a2a;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid #333333;
  position: sticky;
  top: 0;
  text-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0.3);
}

.transactions-table td {
  padding: 1rem;
  color: #ffffff;
  border-bottom: 1px solid #333333;
}

.transactions-table tr:hover {
  background-color: #2a2a2a;
  box-shadow: inset 0 0 10px rgba(var(--accent-primary-rgb), 0.1);
}

.amount-cell {
  font-weight: 600;
}

.amount-cell.positive {
  color: #2c5caf;
}

.amount-cell.negative {
  color: #dc2626;
}

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: #2a2a2a;
  color: var(--accent-primary-light);
  border: 1px solid var(--accent-primary);
  text-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0.5);
}

.badge-secondary {
  background-color: #2a2a2a;
  color: #999999;
  border: 1px solid #444444;
}

/* Alertas */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Previsão Financeira */
.forecast-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.forecast-controls select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.forecast-container {
  margin-top: 1rem;
}

.forecast-table {
  overflow-x: auto;
}

.forecast-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.forecast-table th {
  background-color: #f8fafc;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e2e8f0;
}

.forecast-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.forecast-table tr.positive {
  background-color: #ecfdf5;
}

.forecast-table tr.negative {
  background-color: #fef2f2;
}

/* Text Colors */
.text-muted {
  color: #64748b;
  font-style: italic;
}

.text-error {
  color: var(--accent-primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide desktop sidebar on mobile by default */
  .desktop-sidebar {
    display: block;
    transform: translateX(-100%);
  }

  .desktop-sidebar.active {
    transform: translateX(0);
  }

  /* Show menu toggle button on mobile */
  .menu-toggle {
    display: flex;
  }

  /* Show mobile footer navigation */
  .mobile-footer-nav {
    display: flex;
  }

  /* Adjust main content area for mobile */
  .main-content-area {
    margin-left: 0;
    padding-bottom: 100px; /* Space for footer nav - ajustado para nova altura */
    min-height: calc(100vh - 100px);
  }

  /* Container adjustments */
  .container {
    padding: 0 0.75rem;
  }

  /* Header adjustments */
  .top-header {
    padding: 1rem 1rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  /* Page content adjustments */
  .page-content {
    padding: 1rem;
  }

  /* Dashboard responsive */
  .summary-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

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

  /* Form adjustments */
  .form-row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .card h2 {
    font-size: 1.125rem;
  }

  /* Account balance adjustments */
  .account-balance {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* Forecast controls */
  .forecast-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Statement responsive */
  .statement-table-header,
  .statement-row {
    grid-template-columns: 60px 100px 1fr 100px 100px 100px;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.75rem;
  }

  .statement-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .statement-filters {
    flex-wrap: wrap;
  }

  .filter-chip {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  /* Action buttons responsive */
  .action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quick-action-content {
    padding: 0.875rem 1rem;
  }

  .quick-action-text,
  .quick-action-primary {
    font-size: 0.875rem;
  }

  .quick-action-desc {
    font-size: 0.7rem;
  }

  /* Accounts grid responsive */
  .accounts-grid {
    grid-template-columns: 1fr;
  }

  /* Forecast card mobile */
  .forecast-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .forecast-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .forecast-header h3 {
    font-size: 1rem;
  }

  .forecast-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }

  .forecast-content {
    gap: 1rem;
  }

  .forecast-value {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .forecast-count {
    font-size: 0.7rem;
  }

  .forecast-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .forecast-icon-small {
    font-size: 0.875rem;
  }

  /* Weekly chart mobile */
  .weekly-chart-section {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .chart-title h3 {
    font-size: 0.875rem;
  }

  .chart-title p {
    font-size: 0.7rem;
  }

  .chart-container {
    height: 120px;
    margin-bottom: 0.75rem;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
  }

  .chart-legend {
    gap: 1rem;
  }

  .legend-item {
    font-size: 0.7rem;
  }

  .legend-color {
    width: 10px;
    height: 10px;
  }

  /* Section header responsive */
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  /* Modal responsive */
  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .modal-actions {
    flex-direction: column;
  }

  /* Transaction responsive */
  .transaction-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    padding: 1rem;
  }

  .transaction-details {
    grid-column: 2;
    grid-row: 1;
  }

  .transaction-amount {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-right: 0;
  }

  .transaction-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .transaction-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Section actions responsive */
  .section-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-create-action {
    margin-left: 0;
  }

  /* Transactions tabs mobile */
  .transactions-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .transactions-tabs .tab-btn {
    flex: 1 1 auto;
    min-width: fit-content;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .transactions-tabs .tab-label {
    display: inline;
  }

  .transactions-tabs .tab-icon {
    margin-right: 0.25rem;
  }

  .transactions-tabs .tab-badge {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
  }

  .transactions-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .transaction-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .transaction-actions .btn-new-transaction {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Show desktop sidebar on tablet - always visible */
  .desktop-sidebar {
    display: block;
    transform: translateX(0); /* Always visible on tablet */
  }

  /* Hide menu toggle button on tablet */
  .menu-toggle {
    display: none;
  }

  /* Hide mobile footer navigation */
  .mobile-footer-nav {
    display: none;
  }

  /* Adjust main content area for tablet */
  .main-content-area {
    margin-left: 240px; /* Restore margin for sidebar */
    padding-bottom: 0; /* No space needed for footer nav */
    min-height: 100vh;
  }

  /* Container adjustments */
  .container {
    padding: 0 1rem;
  }

  /* Dashboard responsive for tablet */
  .summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  /* Accounts grid responsive for tablet */
  .accounts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* Form adjustments for tablet */
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Section actions for tablet */
  .section-actions {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Large Desktop Responsive Design */
@media (min-width: 1025px) {
  /* Show desktop sidebar - always visible on desktop */
  .desktop-sidebar {
    display: block;
    transform: translateX(0); /* Always visible */
  }

  /* Hide menu toggle button on desktop */
  .menu-toggle {
    display: none;
  }

  /* Hide mobile footer navigation */
  .mobile-footer-nav {
    display: none;
  }

  /* Restore main content area margins */
  .main-content-area {
    margin-left: 240px;
    padding-bottom: 0;
  }

  /* Dashboard content for large screens */
  .dashboard-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Accounts grid for large screens */
  .accounts-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Efeitos especiais de vermelho futurista */
.amount.positive {
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.8);
}

.amount.negative {
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.9),
    0 0 30px rgba(var(--accent-primary-rgb), 0.4);
}

.balance-value.positive {
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.8);
}

.balance-value.negative {
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.9),
    0 0 30px rgba(var(--accent-primary-rgb), 0.4);
}

.amount-cell.positive {
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.8);
}

.amount-cell.negative {
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.9),
    0 0 30px rgba(var(--accent-primary-rgb), 0.4);
}

/* Bordas vermelhas sutis em elementos ativos */
.nav-link.active {
  border-left: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}

.card:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-primary-rgb), 0.3),
    transparent
  );
  height: 2px;
}

/* Efeito neon para títulos importantes */
.card h2:hover {
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

/* Dashboard Mobile - Sistema de Telas */
.screen {
  display: none;
  padding: 1rem;
  min-height: calc(100vh - 100px);
}

.screen.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.screen-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.screen-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.screen-header p {
  font-size: 0.875rem;
  color: #999999;
  margin: 0;
}

/* Cards Base */
.balance-card,
.summary-card,
.budget-card,
.evolution-chart,
.category-chart,
.transactions-list,
.budget-status,
.debts-section,
.debt-progress,
.goals-section,
.investment-summary,
.allocation-chart,
.indicators-section,
.comparison-section {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #333333;
}

/* Evolution Chart Filters */
.evolution-chart .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: #2a2a2a;
  color: #888888;
  border: 1px solid #444444;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #333333;
  color: #ffffff;
  border-color: var(--accent-primary-light);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary-light);
  font-weight: 600;
}

.filter-btn.active:hover {
  background: var(--accent-primary);
  color: #000000;
}

@media (max-width: 768px) {
  .chart-filters {
    gap: 0.25rem;
  }

  .filter-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
}

.balance-card,
.summary-card,
.budget-card {
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.balance-card:hover,
.summary-card:hover,
.budget-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

/* Saldo Total */
.balance-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.balance-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.balance-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.balance-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.balance-trend {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
}

.balance-trend.positive {
  background: rgba(50, 69, 103, 0.2);
  color: #2c5caf;
  border: 1px solid rgba(50, 69, 103, 0.3);
}

/* Resumo Mensal */
.summary-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0 0 0.75rem 0;
}

.summary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.summary-item {
  text-align: center;
}

.summary-label {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 0.25rem;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.summary-item.income .summary-value {
  color: #2c5caf;
}

.summary-item.expense .summary-value {
  color: #dc2626;
}

/* Orçamento */
.budget-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0 0 0.75rem 0;
}

.budget-item {
  margin-bottom: 0.75rem;
}

.budget-item:last-child {
  margin-bottom: 0;
}

.budget-label {
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 0.25rem;
}

.budget-bar {
  background: #333333;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.budget-progress {
  height: 100%;
  background: linear-gradient(90deg, #2c5caf, #2c5caf);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.budget-value {
  font-size: 0.7rem;
  color: #cccccc;
  text-align: right;
}

/* Gráficos */
.chart-header {
  margin-bottom: 0.75rem;
}

.chart-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.chart-container {
  position: relative;
  height: 120px;
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Transações */
.list-header {
  margin-bottom: 0.75rem;
}

.list-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333333;
}

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

.transaction-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.transaction-icon.income {
  background: rgba(50, 69, 103, 0.2);
}

.transaction-icon.expense {
  background: rgba(var(--accent-primary-rgb), 0.2);
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.transaction-category {
  font-size: 0.7rem;
  color: #999999;
}

.transaction-amount {
  font-size: 0.875rem;
  font-weight: 600;
}

.transaction-amount.positive {
  color: #2c5caf;
}

.transaction-amount.negative {
  color: #dc2626;
}

/* Status Orçamentário */
.status-header {
  margin-bottom: 0.75rem;
}

.status-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.status-item {
  text-align: center;
}

.status-label {
  font-size: 0.7rem;
  color: #999999;
  margin-bottom: 0.25rem;
}

.status-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.status-indicator.good {
  background: rgba(50, 69, 103, 0.2);
  color: #2c5caf;
  border: 1px solid rgba(50, 69, 103, 0.3);
}

.status-indicator.warning {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary-light);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

.status-indicator.danger {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary-light);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

/* Dívidas */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.add-btn {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.debt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333333;
}

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

.debt-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.debt-details {
  font-size: 0.7rem;
  color: #999999;
}

.debt-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary-light);
}

/* Metas */
.goal-item {
  margin-bottom: 0.75rem;
}

.goal-item:last-child {
  margin-bottom: 0;
}

.goal-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.goal-target {
  font-size: 0.7rem;
  color: #999999;
  margin-bottom: 0.5rem;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  flex: 1;
  background: #333333;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3b82f6;
  min-width: 30px;
  text-align: right;
}

/* Investimentos */
.summary-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0 0 0.75rem 0;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.summary-trend {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
}

.summary-trend.positive {
  background: rgba(50, 69, 103, 0.2);
  color: #2c5caf;
  border: 1px solid rgba(50, 69, 103, 0.3);
}

/* Indicadores */
.indicators-header {
  margin-bottom: 0.75rem;
}

.indicators-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.indicators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.indicator-item {
  text-align: center;
}

.indicator-label {
  font-size: 0.7rem;
  color: #999999;
  margin-bottom: 0.25rem;
}

.indicator-value {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.indicator-value.good {
  background: rgba(50, 69, 103, 0.2);
  color: #2c5caf;
  border: 1px solid rgba(50, 69, 103, 0.3);
}

.indicator-value.excellent {
  background: rgba(50, 69, 103, 0.3);
  color: #2c5caf;
  border: 1px solid rgba(50, 69, 103, 0.5);
}

.indicator-value.warning {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary-light);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

/* Tendências */
.comparison-header {
  margin-bottom: 0.75rem;
}

.comparison-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.trend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333333;
}

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

.trend-label {
  font-size: 0.75rem;
  color: #cccccc;
}

.trend-value {
  font-size: 0.75rem;
  font-weight: 600;
}

.trend-value.positive {
  color: #2c5caf;
}

.trend-value.excellent {
  color: #2c5caf;
  font-weight: 700;
}

/* Filtro de Período */
.period-filter {
  margin-top: 0.5rem;
}

.period-filter select {
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* Investimentos */
.investments-list {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #333333;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.investment-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333333;
}

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

.investment-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
}

.investment-details {
  flex: 1;
}

.investment-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.investment-type {
  font-size: 0.7rem;
  color: #999999;
}

.investment-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #22c55e;
}

/* Mensagens de "sem dados" */
.no-data {
  text-align: center;
  color: #999999;
  font-size: 0.875rem;
  padding: 2rem 1rem;
  font-style: italic;
}

/* Gráfico Semanal Compacto */
.weekly-chart-section {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.weekly-chart-section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.chart-header {
  margin-bottom: 1rem;
}

.chart-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.chart-title p {
  font-size: 0.75rem;
  color: #999999;
  margin: 0;
}

.chart-container {
  position: relative;
  height: 150px;
  margin-bottom: 1rem;
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #999999;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #333333;
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #cccccc;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.income {
  background: #2c5caf;
  box-shadow: 0 0 8px rgba(50, 69, 103, 0.5);
}

.legend-color.expense {
  background: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.legend-color.balance {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.today-date {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.today-date h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.day-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0.5);
}

/* Card de Previsão Único */
.forecast-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #333333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--accent-primary-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.forecast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-primary-rgb), 0.5),
    transparent
  );
}

.forecast-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333333;
}

.forecast-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(var(--accent-primary-rgb), 0.5));
}

.forecast-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.forecast-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.forecast-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cccccc;
}

.forecast-icon-small {
  font-size: 1rem;
}

.forecast-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.income-value {
  color: #2c5caf;
  text-shadow: 0 0 15px rgba(50, 69, 103, 0.6);
}

.expense-value {
  color: #dc2626;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}

.forecast-count {
  font-size: 0.75rem;
  color: #999999;
}

.cashflow-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #333333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--accent-primary-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cashflow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-primary-rgb), 0.5),
    transparent
  );
}

.cashflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 1), 0 0 35px rgba(var(--accent-primary-rgb), 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(var(--accent-primary-rgb), 0.5));
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #cccccc;
  margin: 0;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cashflow-card.income .card-value {
  color: #2c5caf;
  text-shadow: 0 0 15px rgba(50, 69, 103, 0.6);
}

.cashflow-card.expense .card-value {
  color: #dc2626;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}

.cashflow-card.net .card-value {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.6);
}

.card-footer {
  font-size: 0.875rem;
  color: #999999;
}

/* Ações Rápidas */
.quick-actions {
  margin-bottom: 3rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.quick-action-btn {
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  flex: 1;
  position: relative;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 8px rgba(var(--accent-primary-rgb), 0.1);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.quick-action-content {
  padding: 1rem 1.25rem;
  text-align: left;
  position: relative;
}

.quick-action-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.quick-action-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.quick-action-text:first-child {
  margin-bottom: 0.1rem;
}

.quick-action-primary {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.quick-action-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 4px rgba(var(--accent-primary-rgb), 0.3));
}

.quick-action-desc {
  display: block;
  font-size: 0.75rem;
  color: #999999;
  font-weight: 400;
  line-height: 1.2;
}

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

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.section-header p {
  color: #cccccc;
  margin: 0;
  font-size: 0.875rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.action-btn {
  background: #1a1a1a;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(var(--accent-primary-rgb), 0.08);
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), 0 0 18px rgba(var(--accent-primary-rgb), 0.15);
}

.btn-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 6px rgba(var(--accent-primary-rgb), 0.15));
}

.btn-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.btn-desc {
  font-size: 0.75rem;
  color: #999999;
}

.action-btn.income:hover {
  border-color: rgba(50, 69, 103, 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(50, 69, 103, 0.12);
}

.action-btn.expense:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(var(--accent-primary-rgb), 0.12);
}

.action-btn.transfer:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), 0 0 18px rgba(59, 130, 246, 0.15);
}

.action-btn.account:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(168, 85, 247, 0.12);
}

/* Extrato Bancário */
.bank-statement {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #333333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--accent-primary-rgb), 0.2);
  overflow: hidden;
}

.statement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.statement-title h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.statement-date {
  font-size: 0.875rem;
  color: #cccccc;
  opacity: 0.8;
}

.statement-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-chip {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cccccc;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: #ffffff;
  border-color: rgba(var(--accent-primary-rgb), 0.5);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.filter-chip.active {
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.4);
}

.filter-icon {
  font-size: 0.875rem;
}

.statement-content {
  padding: 0;
}

.statement-table-header {
  display: grid;
  grid-template-columns: 80px 120px 1fr 120px 150px 120px;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #2a2a2a;
  border-bottom: 1px solid #333333;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statement-table {
  background: #1a1a1a;
}

.statement-row {
  display: grid;
  grid-template-columns: 80px 120px 1fr 120px 150px 120px;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #333333;
  transition: all 0.2s ease;
  align-items: center;
}

.statement-row:hover {
  background: rgba(var(--accent-primary-rgb), 0.05);
  border-left: 3px solid rgba(var(--accent-primary-rgb), 0.5);
}

.statement-row:last-child {
  border-bottom: none;
}

.col-time .time {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #999999;
}

.col-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transaction-type-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 5px rgba(var(--accent-primary-rgb), 0.5));
}

.transaction-type-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.col-description .description {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 500;
}

.col-category .category-badge {
  display: inline-block;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.col-account .account-name {
  font-size: 0.875rem;
  color: #cccccc;
  font-weight: 500;
}

.col-amount .amount {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.col-amount .amount.positive {
  color: #2c5caf;
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.5);
}

.col-amount .amount.negative {
  color: var(--accent-primary-light);
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.6);
}

/* Resumo do Extrato */
.statement-summary {
  padding: 2rem;
  background: #0f0f0f;
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.summary-row.summary-total {
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.summary-label {
  color: #cccccc;
  font-weight: 500;
}

.summary-value {
  font-family: "Monaco", "Menlo", monospace;
  font-weight: 700;
}

.summary-value.income {
  color: #2c5caf;
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.5);
}

.summary-value.expense {
  color: #dc2626;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.summary-value.total.positive {
  color: #2c5caf;
  text-shadow: 0 0 15px rgba(50, 69, 103, 0.6);
}

.summary-value.total.negative {
  color: #dc2626;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}

/* Estado Vazio do Extrato */
.empty-statement {
  text-align: center;
  padding: 4rem 2rem;
  color: #cccccc;
}

.empty-statement .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-statement h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.empty-statement p {
  font-size: 0.875rem;
  margin: 0 0 2rem 0;
  opacity: 0.8;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.empty-actions .btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.empty-actions .btn-icon {
  font-size: 1rem;
}

/* Estilos para Gestão de Contas */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.section-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.5);
}

.section-title p {
  color: #cccccc;
  font-size: 0.875rem;
  margin: 0;
}

.btn-create-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary-dark) 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.3),
    0 0 20px rgba(var(--accent-primary-rgb), 0.2);
}

.btn-create-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(var(--accent-primary-rgb), 0.4),
    0 0 30px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-create-account .btn-icon {
  font-size: 1.125rem;
}

/* Formulário de Contas */
.account-form-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--accent-primary-rgb), 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.close-btn {
  background: none;
  border: none;
  color: #999999;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.25rem;
  line-height: 1;
}

.close-btn:hover {
  color: #ffffff;
}

.account-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cccccc;
}

.form-input {
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #ffffff;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary-light);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.input-group {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 8px;
  overflow: hidden;
}

.input-symbol {
  background: var(--accent-primary);
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.875rem;
  border-right: 1px solid var(--accent-primary);
}

.input-group .form-input {
  border: none;
  border-radius: 0;
  flex: 1;
  box-shadow: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

/* Grid de Contas */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--accent-primary-rgb), 0.1);
}

.account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--accent-primary-rgb), 0.2);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.account-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(var(--accent-primary-rgb), 0.5));
}

.account-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.action-btn.edit:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.action-btn.delete:hover {
  background: rgba(var(--accent-primary-rgb), 0.3);
  border-color: rgba(var(--accent-primary-rgb), 0.6);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}

.account-body {
  padding: 0 1.5rem 1rem 1.5rem;
}

.account-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.account-details {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.account-type-badge {
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-currency {
  font-size: 0.75rem;
  color: #cccccc;
  font-weight: 500;
}

.account-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background: #0f0f0f;
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.balance-label {
  font-size: 0.875rem;
  color: #cccccc;
  font-weight: 500;
}

.balance-value {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 1.125rem;
  font-weight: 700;
}

.balance-value.positive {
  color: #2c5caf;
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.5);
}

.balance-value.negative {
  color: #dc2626;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.initial-balance {
  margin-top: 0.5rem;
}

.initial-balance small {
  color: #999999;
  font-size: 0.75rem;
}

/* Estado Vazio */
.empty-accounts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #cccccc;
}

.empty-accounts .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-accounts h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.empty-accounts p {
  font-size: 0.875rem;
  margin: 0 0 2rem 0;
  opacity: 0.8;
}

/* Modal de Confirmação */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #333333;
  max-width: 500px;
  width: 90%;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  font-size: 1rem;
  color: #cccccc;
  margin: 0 0 1.5rem 0;
}

.warning-box {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.warning-icon {
  font-size: 1.125rem;
  color: var(--accent-primary-light);
}

.warning-text {
  flex: 1;
  font-size: 0.875rem;
  color: #cccccc;
}

.warning-text strong {
  color: var(--accent-primary-light);
}

.warning-text ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

.warning-text li {
  margin-bottom: 0.25rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #0f0f0f;
  border-top: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

/* Modal de Conta - Mais Espaçoso */
.account-modal .modal-content {
  max-width: 700px;
  width: 90%;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.account-modal .modal-body {
  padding: 1.5rem;
}

.account-modal .modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #333333;
}

.account-modal .modal-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #333333;
}

/* Estilos para Página de Transações */
.transactions-page {
  padding: 1.5rem;
}

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

.transactions-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.transaction-actions {
  display: flex;
  gap: 0.75rem;
}

.transactions-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333333;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.transactions-tabs .tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #888888;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.transactions-tabs .tab-btn:hover {
  color: #ffffff;
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.transactions-tabs .tab-btn.active {
  color: #ffffff;
  border-bottom-color: rgba(var(--accent-primary-rgb), 0.6);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.transactions-tabs .tab-icon {
  font-size: 1rem;
}

.transactions-tabs .tab-label {
  display: inline;
}

.transactions-tabs .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.5rem;
  background: rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-left: 0.25rem;
}

.btn-create-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-primary-light) 0%, var(--accent-primary-dark) 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3),
    0 0 10px rgba(var(--accent-primary-rgb), 0.2);
  margin-left: 0.5rem;
}

.btn-create-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4),
    0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.section-actions {
  display: flex;
  gap: 1rem;
}

.transactions-card {
  background: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #333333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--accent-primary-rgb), 0.2);
  overflow: hidden;
  margin-top: 2rem;
}

.transaction-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #333333;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background: rgba(var(--accent-primary-rgb), 0.05);
  border-left: 3px solid rgba(var(--accent-primary-rgb), 0.5);
}

.transaction-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  filter: drop-shadow(0 0 5px rgba(var(--accent-primary-rgb), 0.5));
}

.transaction-details {
  flex: 1;
  margin-right: 1rem;
}

.transaction-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.transaction-main h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.transaction-category {
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
}

.transaction-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #cccccc;
}

.transaction-date {
  font-weight: 500;
}

.transaction-account {
  opacity: 0.8;
}

.transaction-amount {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: right;
  margin-right: 1rem;
}

.transaction-amount .amount.positive {
  color: #2c5caf;
  text-shadow: 0 0 10px rgba(50, 69, 103, 0.5);
}

.transaction-amount .amount.negative {
  color: #dc2626;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.transaction-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.transaction-actions .action-btn {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.transaction-actions .action-btn.edit:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.transaction-actions .action-btn.delete:hover {
  background: rgba(var(--accent-primary-rgb), 0.3);
  border-color: rgba(var(--accent-primary-rgb), 0.6);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}

/* Modal de Transação */
.transaction-modal .modal-content {
  max-width: 700px;
  width: 90%;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.transaction-modal .modal-body {
  padding: 1.5rem 2rem;
}

.transaction-modal .transaction-form {
  padding: 0;
}

/* Responsive Modals */
@media (max-width: 768px) {
  .modal {
    z-index: 2000; /* Garantir que fique acima da footerbar (z-index: 1000) */
  }

  .modal-content {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-width: none;
    border-radius: 12px;
    max-height: 95vh;
    position: relative;
    z-index: 2001; /* Garantir que o conteúdo do modal fique acima do overlay */
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-actions {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Account Modal Mobile */
  .account-modal .modal-content {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-width: none;
  }

  .account-modal .modal-body {
    padding: 1.25rem;
  }

  .account-modal .modal-header {
    padding: 1rem 1.25rem;
  }

  .account-modal .modal-actions {
    padding: 1rem 1.25rem;
  }

  /* Transaction Modal Mobile */
  .transaction-modal .modal-content {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-width: none;
  }

  .transaction-modal .modal-body {
    padding: 1.25rem;
  }

  .transaction-modal .transaction-form {
    padding: 0;
  }

  /* Form adjustments for mobile */
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    width: 100%;
  }

  .type-selector {
    flex-direction: column;
    gap: 0.75rem;
  }

  .type-label {
    padding: 1rem;
    text-align: center;
  }

  .recurrence-fields {
    padding: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .modal-content {
    max-width: 600px;
    width: 85%;
  }

  .modal-header {
    padding: 1.25rem 2rem;
  }

  .modal-body {
    padding: 1.75rem 2rem;
  }

  .modal-actions {
    padding: 1.25rem 2rem;
  }

  .account-modal .modal-content {
    max-width: 650px;
  }

  .transaction-modal .modal-content {
    max-width: 650px;
  }
}

@media (min-width: 1025px) {
  .modal-content {
    max-width: 700px;
    width: 80%;
  }

  .modal-header {
    padding: 1.5rem 2rem;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-actions {
    padding: 1.5rem 2rem;
  }

  .account-modal .modal-content {
    max-width: 800px;
  }

  .transaction-modal .modal-content {
    max-width: 800px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #cccccc;
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
  opacity: 0.8;
}

/* Feature List */
.feature-list {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333333;
  margin-bottom: 1rem;
}

.feature-list h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.4);
}

.feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #cccccc;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.1);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0.3);
}

/* ============================================================================
   BUDGET CONTROLS
   ============================================================================ */

.budget-controls {
  margin-bottom: 1.5rem;
}

.budget-status-section {
  margin-bottom: 2rem;
}

.budget-status-section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.budget-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budget-item {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.budget-item:hover {
  border-color: var(--accent-primary-light);
  background: #222222;
}

.budget-info {
  flex: 1;
  min-width: 0;
}

.budget-category {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.budget-details {
  font-size: 0.875rem;
  color: #888888;
}

.budget-remaining {
  font-size: 0.75rem;
  color: #2c5caf;
  font-weight: 500;
  margin-top: 0.25rem;
}

.budget-remaining.over-budget {
  color: #dc2626;
}

.view-more-budgets {
  text-align: center;
  margin-top: 1rem;
}

.view-more-budgets .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.budget-progress {
  flex: 1;
  min-width: 120px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #333333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.progress-fill.status-good {
  background: #2c5caf;
}

.progress-fill.status-warning {
  background: var(--accent-primary);
}

.progress-fill.status-danger {
  background: #dc2626;
}

.progress-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
}

.progress-label.status-good {
  color: #2c5caf;
}

.progress-label.status-warning {
  color: var(--accent-primary-light);
}

.progress-label.status-danger {
  color: #dc2626;
}

.budget-actions {
  display: flex;
  gap: 0.5rem;
}

.budget-actions .btn-icon {
  background: transparent;
  border: 1px solid #333333;
  color: #cccccc;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.budget-actions .btn-icon:hover {
  background: #333333;
  color: #ffffff;
}

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

.summary-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.summary-header h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #888888;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #888888;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.empty-state p {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Responsive Budget */
@media (max-width: 768px) {
  .budget-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .budget-progress {
    min-width: auto;
  }

  .budget-actions {
    justify-content: center;
  }

  .budget-summary {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .budget-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   NOVOS ESTILOS PARA DASHBOARD MODERNO
   ============================================================================ */

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

.dashboard-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary-light);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), #2c5caf);
}

.dashboard-card.primary::before {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-light));
}

.dashboard-card.secondary::before {
  background: linear-gradient(90deg, #2c5caf, #3b82f6);
}

.dashboard-card.accent::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.dashboard-card.success::before {
  background: linear-gradient(90deg, #059669, #10b981);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: 8px;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.card-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.card-title p {
  font-size: 0.75rem;
  color: #888888;
  margin: 0.25rem 0 0 0;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.card-value.positive {
  color: #10b981;
}

.card-value.negative {
  color: #ef4444;
}

.card-trend {
  font-size: 0.875rem;
  font-weight: 500;
  color: #888888;
}

.card-trend.positive {
  color: #10b981;
}

.card-trend.negative {
  color: #ef4444;
}

/* Seção de Gráficos */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.chart-card:hover {
  border-color: var(--accent-primary-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.chart-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.chart-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #333333;
  color: #cccccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: #333333;
  color: #ffffff;
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary-light);
  color: #000000;
}

.chart-container {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Seções de Metas e Orçamento */
.goals-section,
.budget-section {
  margin-bottom: 2rem;
}

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

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: #000000;
}

/* Grid de Metas */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.goal-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.goal-card:hover {
  border-color: var(--accent-primary-light);
  transform: translateY(-1px);
}

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

.goal-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.goal-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb), 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.goal-progress {
  margin-bottom: 1rem;
}

.goal-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.goal-current {
  font-weight: 600;
  color: #ffffff;
}

.goal-target {
  color: #888888;
}

/* Grid de Orçamento */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.budget-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.budget-card:hover {
  border-color: var(--accent-primary-light);
  transform: translateY(-1px);
}

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

.budget-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.budget-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.budget-percentage.good {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.budget-percentage.warning {
  color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.budget-percentage.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.budget-progress {
  margin-bottom: 1rem;
}

.budget-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.budget-spent {
  font-weight: 600;
  color: #ffffff;
}

.budget-limit {
  color: #888888;
}

/* Responsividade para Dashboard */
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .charts-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .goals-grid,
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .dashboard-card {
    padding: 1rem;
  }

  .chart-card {
    padding: 1rem;
  }

  .card-header {
    gap: 0.75rem;
  }

  .card-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .card-value {
    font-size: 1.25rem;
  }
}

/* ============================================================================
   ESTILOS PARA FLUXO DE CAIXA
   ============================================================================ */

/* Controles de Período */
.period-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-toggle {
  display: flex;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.25rem;
  border: 1px solid #333333;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: #cccccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.toggle-btn:hover {
  background: #333333;
  color: #ffffff;
}

.toggle-btn.active {
  background: var(--accent-primary);
  color: #000000;
}

/* Resumo do Período */
.period-summary {
  margin-bottom: 2rem;
}

.summary-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
}

.summary-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-item {
  text-align: center;
  padding: 1rem;
  background: #0f0f0f;
  border-radius: 8px;
  border: 1px solid #333333;
}

.summary-label {
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.summary-value.positive {
  color: #10b981;
}

.summary-value.negative {
  color: #ef4444;
}

/* Timeline */
.timeline-section {
  margin-bottom: 2rem;
}

.timeline-header {
  margin-bottom: 1.5rem;
}

.timeline-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.timeline-header p {
  font-size: 0.875rem;
  color: #888888;
  margin: 0;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-day {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-day:hover {
  border-color: var(--accent-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.day-date {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.day-name {
  font-size: 0.75rem;
  color: #888888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary-light);
  line-height: 1;
}

.day-month {
  font-size: 0.875rem;
  color: #cccccc;
  font-weight: 500;
}

.day-summary {
  text-align: right;
}

.day-net {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.day-net.positive {
  color: #10b981;
}

.day-net.negative {
  color: #ef4444;
}

.day-transactions {
  font-size: 0.75rem;
  color: #888888;
}

.day-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.day-income,
.day-expense {
  flex: 1;
}

.detail-label {
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
}

.detail-value.positive {
  color: #10b981;
}

.detail-value.negative {
  color: #ef4444;
}

.day-balance {
  padding-top: 1rem;
  border-top: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  font-size: 0.875rem;
  color: #888888;
  font-weight: 500;
}

.balance-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.balance-value.positive {
  color: #10b981;
}

.balance-value.negative {
  color: #ef4444;
}

/* Comparação */
.comparison-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bank-comparison,
.flow-comparison {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
}

.comparison-header {
  margin-bottom: 1.5rem;
}

.comparison-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.comparison-header p {
  font-size: 0.875rem;
  color: #888888;
  margin: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.bank-comparison-card {
  background: #0f0f0f;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.bank-comparison-card:hover {
  border-color: var(--accent-primary-light);
  transform: translateY(-1px);
}

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

.account-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.difference {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.difference.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.difference.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.account-details {
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.875rem;
  color: #888888;
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.account-transactions {
  padding-top: 1rem;
  border-top: 1px solid #333333;
}

.transaction-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888888;
}

.comparison-chart {
  position: relative;
  height: 200px;
  width: 100%;
}

/* Estados Vazios */
.empty-timeline,
.empty-comparison {
  text-align: center;
  padding: 3rem 1rem;
  color: #888888;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-timeline h3,
.empty-comparison h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.empty-timeline p,
.empty-comparison p {
  font-size: 0.875rem;
  margin: 0;
}

/* Responsividade para Fluxo de Caixa */
@media (max-width: 768px) {
  .period-controls {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

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

  .day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .day-summary {
    text-align: left;
  }

  .day-details {
    flex-direction: column;
    gap: 1rem;
  }

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

  .transaction-summary {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .timeline-day {
    padding: 1rem;
  }

  .day-number {
    font-size: 1.5rem;
  }

  .bank-comparison-card {
    padding: 1rem;
  }
}

/* ============================================================================
   ESTILOS PARA MODAL DE IMPORTAÇÃO EXCEL
   ============================================================================ */

/* Modal Base - Removido display: flex para evitar conflito com a definição principal */

.modal-content {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #333333;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #888888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #333333;
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
}

/* Upload Section */
.upload-section {
  text-align: center;
}

.upload-area {
  border: 2px dashed #333333;
  border-radius: 8px;
  padding: 3rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb), 0.05);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-area h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.upload-area p {
  font-size: 0.875rem;
  color: #888888;
  margin: 0 0 1.5rem 0;
}

/* Preview Section */
.preview-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.preview-summary {
  background: #0f0f0f;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1rem;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

/* Preview Transactions */
.preview-content {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #333333;
  border-radius: 8px;
}

.preview-transaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #333333;
  transition: all 0.2s ease;
}

.preview-transaction:last-child {
  border-bottom: none;
}

.preview-transaction:hover {
  background: #0f0f0f;
}

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.transaction-category {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.category-type {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.category-type.income {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.category-type.expense {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.transaction-amount {
  font-size: 1rem;
  font-weight: 700;
}

.transaction-amount.positive {
  color: #10b981;
}

.transaction-amount.negative {
  color: #ef4444;
}

.transaction-date {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  min-width: 200px;
}

.transaction-date label {
  font-size: 0.75rem;
  color: #888888;
  font-weight: 500;
}

.date-input {
  background: #0f0f0f;
  border: 1px solid #333333;
  border-radius: 4px;
  color: #ffffff;
  padding: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  max-width: 150px;
}

.date-input:focus {
  outline: none;
  border-color: var(--accent-primary-light);
}

.month-info {
  font-size: 0.75rem;
  color: #888888;
  font-style: italic;
}

/* Preview Actions */
.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333333;
}

/* Loading Section */
.loading-section {
  text-align: center;
  padding: 3rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333333;
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-section p {
  color: #888888;
  margin: 0;
}

/* Responsividade para Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .preview-transaction {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .transaction-date {
    align-items: stretch;
    min-width: auto;
  }

  .date-input {
    max-width: none;
  }

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

  .preview-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .summary-stats {
    grid-template-columns: 1fr;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .upload-icon {
    font-size: 2rem;
  }
}

/* Estilos para botão de remoção de transações */
.transaction-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-remove {
  background: var(--error-color-light);
  color: var(--error-color);
  border: 1px solid var(--error-color-light);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-remove:hover {
  background: var(--error-color);
  color: white;
  transform: translateY(-1px);
}

.btn-remove span {
  font-size: 1rem;
}

/* Ajustar layout da transação para incluir ações */
.preview-transaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
  gap: 15px;
}

.preview-transaction:hover {
  background: var(--bg-secondary);
}

.preview-transaction:last-child {
  border-bottom: none;
}

.transaction-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transaction-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 20px;
  min-width: 150px;
}

/* Estilos para transações recorrentes */
.preview-transaction.recurring {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--accent-color-light) 100%
  );
  border-left: 4px solid var(--accent-color);
}

.recurring-badge {
  background: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 2px;
}

.day-input {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 60px;
  text-align: center;
}

.day-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.transaction-category {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

/* Estilos para o novo layout de tabela do modal de importação */
.excel-import-content {
  max-width: 1200px !important;
  width: 95% !important;
}

.transactions-table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 80px;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.table-body {
  max-height: 500px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 80px;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background 0.2s ease;
}

.table-row:hover {
  background: var(--bg-secondary);
}

.table-row.recurring {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--accent-color-light) 100%
  );
  border-left: 4px solid var(--accent-color);
}

.col-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.description-text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.month-info,
.recurring-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.col-category {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-select,
.type-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
}

.category-select:focus,
.type-select:focus {
  border-color: var(--accent-color);
  outline: none;
}

.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}

.ai-badge {
  background: var(--accent-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.suggested-category {
  color: var(--accent-color);
  font-weight: 500;
}

.confidence {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.col-type {
  display: flex;
  flex-direction: column;
}

.col-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.amount {
  font-weight: 600;
  font-size: 1rem;
}

.amount.positive {
  color: var(--success-color);
}

.amount.negative {
  color: var(--error-color);
}

.amount-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.col-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-input,
.day-input {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.date-input:focus,
.day-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.date-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.col-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-remove {
  background: var(--error-color-light);
  color: var(--error-color);
  border: 1px solid var(--error-color-light);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-remove:hover {
  background: var(--error-color);
  color: white;
  transform: translateY(-1px);
}

/* Responsividade para o modal */
@media (max-width: 1200px) {
  .excel-import-content {
    width: 98% !important;
    max-width: 100% !important;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.8fr 60px;
    gap: 10px;
    padding: 12px 15px;
  }
}

@media (max-width: 768px) {
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .col-description,
  .col-category,
  .col-type,
  .col-amount,
  .col-date,
  .col-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .col-description::before {
    content: "Descrição: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .col-category::before {
    content: "Categoria: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .col-type::before {
    content: "Tipo: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .col-amount::before {
    content: "Valor: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .col-date::before {
    content: "Data: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .col-actions::before {
    content: "Ações: ";
    font-weight: 600;
    color: var(--text-secondary);
  }
}

/* Estilos específicos para a tela de Investimentos */
.investments-section {
  margin-top: 2rem;
}

.investments-table {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.investments-table .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.investments-table .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background 0.2s ease;
}

.investments-table .table-row:hover {
  background: var(--bg-secondary);
}

.investments-table .table-row:last-child {
  border-bottom: none;
}

.investment-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.investment-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.type-badge.renda-fixa {
  background: var(--success-color-light);
  color: var(--success-color);
}

.type-badge.renda-variável {
  background: var(--accent-color-light);
  color: var(--accent-color);
}

.type-badge.fundos {
  background: var(--warning-color-light);
  color: var(--warning-color);
}

.type-badge.crypto {
  background: var(--error-color-light);
  color: var(--error-color);
}

.type-badge.outros {
  background: var(--text-secondary-light);
  color: var(--text-secondary);
}

.return-amount {
  font-weight: 600;
  font-size: 0.9rem;
}

.return-rate {
  font-size: 0.8rem;
  margin-top: 2px;
}

.btn-action {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.btn-action:hover {
  background: var(--accent-color-light);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.btn-action.danger:hover {
  background: var(--error-color-light);
  border-color: var(--error-color);
}

.chart-controls {
  display: flex;
  gap: 5px;
}

.chart-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.chart-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.chart-btn:hover:not(.active) {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

.chart-wrapper {
  height: 300px;
  position: relative;
}

/* Responsividade para investimentos */
@media (max-width: 1200px) {
  .investments-table .table-header,
  .investments-table .table-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 0.8fr 100px;
    gap: 10px;
    padding: 12px 15px;
  }
}

@media (max-width: 768px) {
  .investments-table .table-header,
  .investments-table .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .investments-table .col-name,
  .investments-table .col-type,
  .investments-table .col-amount,
  .investments-table .col-current,
  .investments-table .col-return,
  .investments-table .col-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .investments-table .col-name::before {
    content: "Nome: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .investments-table .col-type::before {
    content: "Tipo: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .investments-table .col-amount::before {
    content: "Investido: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .investments-table .col-current::before {
    content: "Atual: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .investments-table .col-return::before {
    content: "Rentabilidade: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .investments-table .col-actions::before {
    content: "Ações: ";
    font-weight: 600;
    color: var(--text-secondary);
  }
}

/* ============================================================================
   ESTILOS DO MODAL DE UPLOAD DE FOTO
   ============================================================================ */

.photo-upload-section {
  padding: 20px;
}

.photo-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.photo-upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(var(--accent-primary-rgb), 0.05);
}

.photo-upload-area .upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.photo-upload-area h3 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.photo-upload-area p {
  margin: 0 0 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.upload-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.upload-buttons .btn-primary,
.upload-buttons .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  min-width: 120px;
}

.photo-preview-section {
  padding: 20px;
}

.photo-preview-header {
  text-align: center;
  margin-bottom: 20px;
}

.photo-preview-header h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.photo-preview-image {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.photo-preview-image img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.photo-preview-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.photo-analysis-section {
  padding: 20px;
}

.analysis-header {
  margin-bottom: 20px;
}

.analysis-header h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.analysis-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analysis-stats .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.analysis-stats .stat-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

.analysis-stats .stat-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.analysis-stats .stat-value.positive {
  color: var(--success-color);
}

.analysis-stats .stat-value.negative {
  color: var(--error-color);
}

.analysis-stats .stat-value.income {
  color: var(--success-color);
}

.analysis-stats .stat-value.expense {
  color: var(--error-color);
}

.analysis-reasoning {
  padding: 12px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  font-size: 14px;
  color: var(--text-primary);
}

.analysis-reasoning strong {
  color: var(--primary-color);
}

.analysis-content {
  margin-bottom: 20px;
}

.analysis-content .transaction-form {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.analysis-content .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.analysis-content .form-group {
  display: flex;
  flex-direction: column;
}

.analysis-content .form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.analysis-content .form-group input,
.analysis-content .form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.analysis-content .form-group input:focus,
.analysis-content .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.analysis-content .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.analysis-content .checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
}

.analysis-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.photo-loading-section {
  padding: 40px 20px;
  text-align: center;
}

.photo-loading-section .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.photo-loading-section p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .analysis-stats {
    grid-template-columns: 1fr;
  }

  .analysis-content .form-row {
    grid-template-columns: 1fr;
  }

  .upload-buttons {
    flex-direction: column;
    align-items: center;
  }

  .upload-buttons .btn-primary,
  .upload-buttons .btn-secondary {
    width: 100%;
    max-width: 200px;
  }

  .photo-preview-actions,
  .analysis-actions {
    flex-direction: column;
  }

  .photo-preview-actions .btn-primary,
  .photo-preview-actions .btn-secondary,
  .analysis-actions .btn-primary,
  .analysis-actions .btn-secondary {
    width: 100%;
  }
}

/* Estilos específicos para a tela de Metas */
.goals-section {
  margin-top: 2rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.goal-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.goal-card.completed {
  border-left: 4px solid var(--success-color);
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--success-color-light) 100%
  );
}

.goal-card.almost {
  border-left: 4px solid var(--warning-color);
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--warning-color-light) 100%
  );
}

.goal-card.halfway {
  border-left: 4px solid var(--accent-color);
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--accent-color-light) 100%
  );
}

.goal-card.started {
  border-left: 4px solid var(--text-secondary);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.goal-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  flex: 1;
}

.goal-priority {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.goal-priority.alta {
  background: var(--error-color-light);
  color: var(--error-color);
}

.goal-priority.média {
  background: var(--warning-color-light);
  color: var(--warning-color);
}

.goal-priority.baixa {
  background: var(--success-color-light);
  color: var(--success-color);
}

.goal-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.goal-progress {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--success-color));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

.goal-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.value-amount {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.goal-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-icon {
  font-size: 0.9rem;
}

.info-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.goal-actions {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.goal-actions .btn-action {
  margin: 0;
}

/* Simulador */
.simulator-section {
  margin-top: 2rem;
}

.simulator-content {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.simulator-inputs {
  margin-bottom: 20px;
}

.simulator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.result-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.result-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Modal de simulação */
.simulation-chart {
  height: 300px;
  margin-bottom: 20px;
}

.simulation-table {
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.simulation-table .table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.simulation-table .table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  font-size: 0.9rem;
}

.simulation-table .table-row:hover {
  background: var(--bg-secondary);
}

.simulation-table .table-row:last-child {
  border-bottom: none;
}

/* Responsividade para metas */
@media (max-width: 1200px) {
  .goals-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .simulator-results {
    grid-template-columns: 1fr;
  }

  .simulation-table .table-header,
  .simulation-table .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }

  .simulation-table .col-month,
  .simulation-table .col-investment,
  .simulation-table .col-total,
  .simulation-table .col-earnings {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .simulation-table .col-month::before {
    content: "Mês: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .simulation-table .col-investment::before {
    content: "Investimento: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .simulation-table .col-total::before {
    content: "Total: ";
    font-weight: 600;
    color: var(--text-secondary);
  }

  .simulation-table .col-earnings::before {
    content: "Rendimentos: ";
    font-weight: 600;
    color: var(--text-secondary);
  }
}

/* ============================================================================
   SPREADSHEET STYLES
   ============================================================================ */

.spreadsheet-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.spreadsheet-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.spreadsheet-body {
  overflow-y: auto;
}

.spreadsheet-row {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  min-height: 40px;
}

.spreadsheet-row:hover {
  background-color: #f8f9fa;
}

.spreadsheet-cell {
  padding: 8px 12px;
  border-right: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  min-width: 120px;
  flex: 1;
}

.spreadsheet-cell:last-child {
  border-right: none;
}

.header-cell {
  font-weight: 600;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.9rem;
}

.category-header {
  min-width: 200px;
  max-width: 200px;
  background: #e9ecef;
  border-right: 2px solid #dee2e6;
}

.month-header {
  text-align: center;
  justify-content: center;
  min-width: 100px;
  font-size: 0.85rem;
}

.category-cell {
  font-weight: 500;
  background: #f8f9fa;
  border-right: 2px solid #dee2e6;
  min-width: 200px;
  max-width: 200px;
}

.section-cell {
  font-weight: 600;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 0.9rem;
}

.data-cell {
  background: white;
  position: relative;
}

.total-cell {
  background: #fff3e0;
  font-weight: 600;
}

.cell-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 0.9rem;
  text-align: right;
  outline: none;
}

.cell-input:focus {
  background: #e3f2fd;
  border-radius: 4px;
}

.cell-input.modified {
  background: #fff3e0;
  border: 1px solid #ff9800;
}

.modified {
  background: #fff3e0 !important;
  border: 1px solid #ff9800 !important;
}

.empty-cell {
  background: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spreadsheet-wrapper {
    font-size: 0.8rem;
  }

  .spreadsheet-cell {
    min-width: 80px;
    padding: 6px 8px;
  }

  .category-cell {
    min-width: 150px;
    max-width: 150px;
  }

  .category-header {
    min-width: 150px;
    max-width: 150px;
  }
}

/* Scrollbar styling */
.spreadsheet-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.spreadsheet-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.spreadsheet-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.spreadsheet-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Section row styling */
.section-row {
  background: #e3f2fd !important;
  border-bottom: 2px solid #1976d2 !important;
}

.section-row:hover {
  background: #bbdefb !important;
}

/* Total row styling */
.total-row {
  background: #fff3e0 !important;
  border-bottom: 2px solid #ff9800 !important;
  font-weight: 600;
}

.total-row:hover {
  background: #ffe0b2 !important;
}

/* Income/Expense color coding */
.income-cell .cell-input {
  color: #2e7d32;
}

.expense-cell .cell-input {
  color: #d32f2f;
}

/* Animation for changes */
@keyframes highlightChange {
  0% {
    background-color: #fff3e0;
  }
  50% {
    background-color: #ffcc02;
  }
  100% {
    background-color: #fff3e0;
  }
}

.cell-input.changed {
  animation: highlightChange 1s ease-in-out;
}

/* ============================================================================
   SPREADSHEET STYLES - TEMA ESCURO MODERNO
   ============================================================================ */

/* Container principal da planilha */
.spreadsheet-page {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  min-height: 100vh;
  padding: 2rem;
  color: #ffffff;
}

/* Header da planilha */
.spreadsheet-header-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spreadsheet-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spreadsheet-title::before {
  content: "📊";
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.spreadsheet-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.spreadsheet-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.spreadsheet-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.spreadsheet-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.spreadsheet-nav-btn:disabled {
  background: rgba(107, 114, 128, 0.3);
  color: rgba(156, 163, 175, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spreadsheet-month-info {
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 200px;
  text-align: center;
}

.spreadsheet-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.spreadsheet-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.spreadsheet-btn:hover::before {
  left: 100%;
}

.spreadsheet-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.spreadsheet-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.spreadsheet-btn-secondary {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.4);
}

.spreadsheet-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(55, 65, 81, 0.6);
}

/* Container da planilha */
.spreadsheet-wrapper {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.spreadsheet-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

/* Header da tabela */
.spreadsheet-header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.spreadsheet-body {
  background: rgba(0, 0, 0, 0.2);
}

/* Linhas da tabela */
.spreadsheet-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  min-height: 60px;
}

.spreadsheet-row:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(4px);
}

.spreadsheet-row.section-row {
  background: transparent;
  border-bottom: none;
}

.spreadsheet-row.total-row {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  border-bottom: 2px solid rgba(34, 197, 94, 0.3);
  font-weight: 700;
}

/* Células da tabela */
.spreadsheet-cell {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
  flex: 1;
}

.spreadsheet-cell:last-child {
  border-right: none;
}

.header-cell {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.category-header {
  min-width: 200px;
  max-width: 200px;
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  justify-content: flex-start;
  padding-left: 2rem;
}

.month-header {
  text-align: center;
  justify-content: center;
  min-width: 100px;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  flex: 1;
}

.months-header {
  display: flex;
  flex: 1;
}

.category-cell {
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 200px;
  max-width: 200px;
  padding-left: 2rem;
}

.transaction-row {
  background: rgba(31, 41, 55, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-row:hover {
  background: rgba(31, 41, 55, 0.9);
}

.transaction-cell {
  font-weight: 600;
  color: #ffffff;
  background: rgba(31, 41, 55, 0.8);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 200px;
  max-width: 200px;
  padding-left: 2rem;
}

.category-row {
  background: rgba(79, 70, 229, 0.1);
  border-bottom: 2px solid rgba(79, 70, 229, 0.2);
}

.expandable-category {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  border-right: 2px solid rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease;
}

.expandable-category:hover {
  background: rgba(79, 70, 229, 0.2);
}

.expand-icon {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: #4f46e5;
}

.expand-icon.expanded {
  transform: rotate(90deg);
}

.transaction-row-individual {
  background: rgba(31, 41, 55, 0.6);
  border-left: 3px solid rgba(79, 70, 229, 0.3);
}

.transaction-cell-individual {
  font-weight: 500;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.6);
  border-right: 2px solid rgba(255, 255, 255, 0.05);
  min-width: 200px;
  max-width: 200px;
  padding-left: 2rem;
}

.section-cell {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
}

.data-cell {
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  justify-content: flex-end;
  padding-right: 1rem;
  min-width: 100px;
  flex: 1;
}

.total-cell {
  font-weight: 700;
  color: #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
}

.empty-cell {
  background: rgba(255, 255, 255, 0.01);
}

/* Inputs editáveis */
.cell-input {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  width: 100%;
  max-width: 120px;
  transition: all 0.3s ease;
  outline: none;
}

.cell-input:focus {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.cell-input.modified {
  border-color: var(--accent-primary-light);
  background: rgba(var(--accent-primary-rgb), 0.1);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.2);
}

.modified {
  background: rgba(var(--accent-primary-rgb), 0.1) !important;
  border: 1px solid var(--accent-primary) !important;
}

/* Estados de carregamento e erro */
.spreadsheet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.spreadsheet-loading .spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(79, 70, 229, 0.3);
  border-top: 3px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spreadsheet-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  margin: 2rem 0;
}

.spreadsheet-no-data-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.spreadsheet-no-data-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.spreadsheet-no-data-text {
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Responsividade */
@media (max-width: 768px) {
  .spreadsheet-page {
    padding: 1rem;
  }

  .spreadsheet-header-section {
    padding: 1.5rem;
  }

  .spreadsheet-title {
    font-size: 2rem;
  }

  .spreadsheet-actions {
    flex-direction: column;
  }

  .spreadsheet-btn {
    width: 100%;
    justify-content: center;
  }

  .spreadsheet-navigation {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .spreadsheet-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .spreadsheet-month-info {
    min-width: auto;
    order: -1;
  }

  .spreadsheet-cell {
    padding: 0.5rem 0.25rem;
    min-width: 60px;
    font-size: 0.8rem;
  }

  .category-cell {
    min-width: 120px;
    max-width: 120px;
    padding-left: 0.5rem;
  }

  .category-header {
    min-width: 120px;
    max-width: 120px;
  }

  .data-cell {
    padding-right: 0.5rem;
    min-width: 60px;
  }

  .month-header {
    min-width: 60px;
    font-size: 0.7rem;
  }

  .cell-input {
    max-width: 80px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .spreadsheet-wrapper {
    overflow-x: auto;
  }
}

/* ============================================================================
   ESTILOS PARA MODAL DE GRAVAÇÃO DE ÁUDIO
   ============================================================================ */

.audio-recording-section {
  text-align: center;
  padding: 2rem;
}

.audio-recording-area {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
}

.recording-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.recording-controls {
  margin: 1.5rem 0;
}

.recording-controls button {
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.recording-status {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
}

.recording-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pulse {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#recordingTimer {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ef4444;
}

.audio-preview-section {
  text-align: center;
  padding: 1rem;
}

.audio-preview-header h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.audio-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.audio-actions button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.audio-loading-section {
  text-align: center;
  padding: 2rem;
}

.audio-transcription-section {
  padding: 1rem;
}

.transcription-result h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.transcription-content {
  margin-bottom: 1.5rem;
}

.transcription-edit {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
}

.transcription-edit:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.transcription-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.transcription-actions button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.audio-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.audio-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.audio-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 640px) {
  .recording-controls button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .audio-actions {
    flex-direction: column;
  }

  .transcription-actions {
    flex-direction: column;
  }

  .transcription-actions button {
    width: 100%;
  }
}

/* Estilo para display da transcrição */
.transcription-display {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 100px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============================================================================
   ESTILOS PARA MODAL DE TRANSAÇÃO
   ============================================================================ */

.transaction-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 500;
  color: #ffffff;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.transaction-type-selector {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.type-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.type-btn.active {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.1);
}

.income-btn.active {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.1);
}

.expense-btn.active {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
}

.type-icon {
  font-size: 1.5rem;
}

.type-text {
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.form-actions button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-actions .btn-secondary {
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(107, 114, 128, 0.3);
  color: #d1d5db;
}

.form-actions .btn-secondary:hover {
  background: rgba(107, 114, 128, 0.3);
  border-color: rgba(107, 114, 128, 0.5);
}

.form-actions .btn-primary {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.form-actions .btn-primary:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.transaction-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.transaction-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.transaction-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 640px) {
  .transaction-type-selector {
    flex-direction: row;
    gap: 0.75rem;
  }

  .type-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }

  .type-icon {
    font-size: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* ============================================================================
   CORREÇÃO DOS ESTILOS DOS BOTÕES DE AÇÃO
   ============================================================================ */

/* Botão de Transação - Azul */
.transaction-bubble {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.transaction-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.transaction-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.transaction-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botão de Foto - Verde */
.photo-bubble {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.photo-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.photo-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.photo-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botão de Áudio - Roxo */
.audio-bubble {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.audio-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.audio-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.audio-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botão de Investimento - Laranja */
.investment-bubble {
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-primary-dark));
  color: white;
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.investment-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
}

.investment-bubble .bubble-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.investment-bubble .bubble-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 640px) {
  .transaction-bubble,
  .photo-bubble,
  .audio-bubble,
  .investment-bubble {
    padding: 0.75rem;
  }

  .transaction-bubble .bubble-icon,
  .photo-bubble .bubble-icon,
  .audio-bubble .bubble-icon,
  .investment-bubble .bubble-icon {
    font-size: 1.25rem;
  }

  .transaction-bubble .bubble-text,
  .photo-bubble .bubble-text,
  .audio-bubble .bubble-text,
  .investment-bubble .bubble-text {
    font-size: 0.8rem;
  }
}

/* ============================================================================
   OVERLAY DE GRAVAÇÃO DE ÁUDIO
   ============================================================================ */

.audio-recording-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.recording-overlay-content {
  background: linear-gradient(135deg, #1f2937, #111827);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
}

.recording-animation {
  position: relative;
  margin-bottom: 2rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-pulse {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  position: relative;
  z-index: 2;
}

.recording-pulse::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  animation: innerPulse 1.5s infinite;
}

.recording-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  animation: waveExpand 2s infinite;
}

.wave-1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.wave-2 {
  width: 140px;
  height: 140px;
  animation-delay: 0.5s;
}

.wave-3 {
  width: 180px;
  height: 180px;
  animation-delay: 1s;
}

.recording-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.recording-info p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.recording-timer {
  font-size: 2rem;
  font-weight: 700;
  color: #ef4444;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  margin-bottom: 2rem;
}

.recording-controls {
  display: flex;
  justify-content: center;
}

.stop-recording-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
  justify-content: center;
}

.stop-recording-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.stop-recording-btn:active {
  transform: translateY(0);
}

.stop-icon {
  font-size: 1.25rem;
}

.stop-text {
  font-size: 0.875rem;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes innerPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes waveExpand {
  0% {
    width: 100px;
    height: 100px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* Responsividade para mobile */
@media (max-width: 640px) {
  .recording-overlay-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .recording-animation {
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .recording-pulse {
    width: 60px;
    height: 60px;
  }

  .recording-pulse::before {
    width: 30px;
    height: 30px;
  }

  .recording-waves {
    width: 150px;
    height: 150px;
  }

  .wave-1 {
    width: 80px;
    height: 80px;
  }

  .wave-2 {
    width: 110px;
    height: 110px;
  }

  .wave-3 {
    width: 140px;
    height: 140px;
  }

  .recording-info h3 {
    font-size: 1.25rem;
  }

  .recording-timer {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .stop-recording-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    min-width: 160px;
  }
}
