/* ====================================
   PAINEL DE COTAÇÕES - TEMA DARK
   ==================================== */

/* Reset e variáveis globais */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2b2b2b;
  --bg-tertiary: #353535;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --positive-color: #48c774;
  --negative-color: #f14668;
  --primary-color: #3273dc;
  --warning-color: #ffdd57;
}

/* Body e Background */
body.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.site-footer {
  height: 60px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container principal com scroll interno */
/* Container principal com scroll interno */
.main-container {
  height: calc(100vh - 60px);
  overflow: hidden;
  /* Prevent main scrollbar */
  display: flex;
  flex-direction: column;
}

.main-container>.columns.main-content {
  flex: 1;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.main-container>.columns>.column.is-9 {
  overflow-y: auto;
  height: 100%;
  padding-bottom: 2rem;
}

.right-column-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
  overflow-y: auto;
  /* Allow scrolling */
}

.investing-panel {
  flex: 1;
  min-height: 500px;
  /* Ensure visibility */
  padding: 0 !important;
  overflow: hidden;
  background-color: white;
}

.youtube-container {
  flex: 0 0 auto;
  /* Fixed size based on content */
  margin-top: 0 !important;
  padding: 0.5rem !important;
}

/* Container Fluid */
.container-fluid {
  max-width: 100%;
  padding: 0 0.75rem;
}

/* Seções compactas */
section.mb-5 {
  margin-bottom: 1rem !important;
}

/* ====================================
   FORMULÁRIO DE LOGIN
   ==================================== */

.hero.is-fullheight {
  background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
}

.login-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.login-box .title {
  color: var(--text-primary);
}

.login-box .input {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.login-box .input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

.login-box .input::placeholder {
  color: var(--text-secondary);
}

.login-box .label {
  color: var(--text-primary);
  font-weight: 600;
}

.login-box .icon {
  color: var(--text-secondary);
}

/* ====================================
   NAVBAR
   ==================================== */

.navbar.is-dark {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
}

.navbar-item,
.navbar-link {
  color: var(--text-primary);
}

.navbar-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ====================================
   BOXES E CONTAINERS
   ==================================== */

.box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.notification.is-dark {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ====================================
   WRAPPER DE ÍNDICES HORIZONTAL
   ==================================== */

.indices-wrapper {
  column-count: 3;
  column-gap: 0.75rem;
  display: block;
  margin-bottom: 1rem;
}

.indices-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  width: 100%;
  display: inline-block;
  /* Helps with break-inside support */
}

/* Quando há apenas 2 itens, permitir mais largura */
/* Removido regras antigas de flexbox */

.indices-item h3.subtitle {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color);
}

/* ====================================
   CARD ÚNICO COM TODOS OS PAÍSES
   ==================================== */

.quote-card-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

/* Estilos compactos para containers dentro de indices-item */
.indices-item .quote-card-container {
  margin-bottom: 0;
}

.indices-item .quote-card-header-row {
  padding: 0.3rem 0.5rem;
  font-size: 0.65rem;
  gap: 0.3rem;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.8fr 0.4fr;
}

.indices-item .quote-row {
  padding: 0.3rem 0.5rem;
  gap: 0.3rem;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.8fr 0.4fr;
}

.indices-item .quote-row-name {
  font-size: 0.7rem;
}

.indices-item .quote-row-value {
  font-size: 0.7rem;
}

.indices-item .quote-row-time {
  font-size: 0.6rem;
}

.indices-item .quote-row-flag {
  font-size: 0.85rem;
}

.indices-item .quote-chart-btn-small {
  width: 20px;
  height: 20px;
  padding: 0.15rem;
}

.indices-item .quote-chart-btn-small i {
  font-size: 0.65rem;
}

.quote-card-header-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 0.5fr;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: #000000;
  border-bottom: 1px solid #333;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: none;
  color: #ffffff;
}

.quote-header-cell {
  display: flex;
  align-items: center;
}

.quote-card-rows {
  display: flex;
  flex-direction: column;
}

.quote-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 0.5fr;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: #000000;
  border-bottom: 1px solid #333;
  transition: all 0.2s ease;
  align-items: center;
}

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

.quote-row:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.01);
}

/* Fundos coloridos baseados na variação */
.quote-row.positive-bg {
  background-color: rgba(72, 199, 116, 0.25);
  border-left: 4px solid rgba(72, 199, 116, 0.8);
}

.quote-row.negative-bg {
  background-color: rgba(241, 70, 104, 0.25);
  border-left: 4px solid rgba(241, 70, 104, 0.8);
}

.quote-row.neutral-bg {
  background-color: var(--bg-secondary);
  border-left: 4px solid transparent;
}

.quote-row-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-row-flag {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.quote-row-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #3273dc;
}

.quote-row-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
}

.quote-row-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
}

.quote-row-chart {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-chart-btn-small {
  background: transparent;
  border: none;
  color: #3273dc;
  cursor: pointer;
  padding: 0.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.quote-chart-btn-small:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.quote-chart-btn-small i {
  font-size: 0.75rem;
}

/* Responsividade */
@media screen and (max-width: 1200px) {
  .indices-wrapper {
    column-count: 2;
  }

  .indices-item {
    max-width: 100%;
  }

  .quote-card-header-row,
  .quote-row {
    grid-template-columns: 2fr 1fr 0.8fr 0.8fr 0.8fr 0.5fr;
    gap: 0.75rem;
  }

  .indices-item .quote-card-header-row,
  .indices-item .quote-row {
    grid-template-columns: 1.3fr 0.9fr 0.7fr 0.7fr 0.7fr 0.35fr;
  }
}

@media screen and (max-width: 768px) {
  .indices-wrapper {
    column-count: 1;
  }

  .indices-item {
    max-width: 100%;
  }

  .quote-card-header-row,
  .quote-row {
    grid-template-columns: 1.5fr 1fr 0.7fr 0.7fr 0.7fr 0.4fr;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .indices-item .quote-card-header-row,
  .indices-item .quote-row {
    grid-template-columns: 1.2fr 0.9fr 0.65fr 0.65fr 0.65fr 0.3fr;
    padding: 0.25rem 0.4rem;
  }

  .quote-row-name {
    font-size: 0.85rem;
  }

  .quote-row-value {
    font-size: 0.85rem;
  }

  .quote-row-time {
    font-size: 0.75rem;
  }

  .indices-item .quote-row-name {
    font-size: 0.65rem;
  }

  .indices-item .quote-row-value {
    font-size: 0.65rem;
  }

  .indices-item .quote-row-time {
    font-size: 0.55rem;
  }

  .quote-chart-btn-small {
    width: 24px;
    height: 24px;
  }

  .quote-chart-btn-small i {
    font-size: 0.75rem;
  }

  .indices-item .quote-chart-btn-small {
    width: 18px;
    height: 18px;
  }

  .indices-item .quote-chart-btn-small i {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 480px) {
  .indices-wrapper {
    column-count: 1;
  }

  .indices-item {
    max-width: 100%;
  }

  .indices-item h3.subtitle {
    font-size: 0.75rem;
  }

  .quote-card-header-row,
  .quote-row {
    grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr 0.6fr 0.3fr;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .indices-item .quote-card-header-row,
  .indices-item .quote-row {
    grid-template-columns: 1.1fr 0.8fr 0.6fr 0.6fr 0.6fr 0.25fr;
    padding: 0.2rem 0.35rem;
    gap: 0.25rem;
  }

  .quote-row-name {
    font-size: 0.8rem;
  }

  .quote-row-value {
    font-size: 0.8rem;
  }

  .quote-row-time {
    font-size: 0.7rem;
  }

  .indices-item .quote-row-name {
    font-size: 0.6rem;
  }

  .indices-item .quote-row-value {
    font-size: 0.6rem;
  }

  .indices-item .quote-row-time {
    font-size: 0.5rem;
  }

  .indices-item .quote-card-header-row {
    font-size: 0.6rem;
  }

  .quote-row-flag {
    font-size: 1rem;
  }

  .indices-item .quote-row-flag {
    font-size: 0.75rem;
  }

  .quote-chart-btn-small {
    width: 22px;
    height: 22px;
  }

  .quote-chart-btn-small i {
    font-size: 0.7rem;
  }

  .indices-item .quote-chart-btn-small {
    width: 16px;
    height: 16px;
  }

  .indices-item .quote-chart-btn-small i {
    font-size: 0.55rem;
  }
}

/* Indicador de tempo real */
.realtime-indicator {
  display: inline-block;
  background: linear-gradient(90deg, var(--positive-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

/* Valores positivos e negativos */
.positive {
  color: var(--positive-color);
  font-weight: 600;
}

.negative {
  color: var(--negative-color);
  font-weight: 600;
}

.neutral {
  color: var(--text-secondary);
}

/* ====================================
   YOUTUBE EMBED
   ==================================== */

.youtube-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 6px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* ====================================
   TÍTULOS E SUBTÍTULOS
   ==================================== */

.title.has-text-light,
.subtitle.has-text-light {
  color: var(--text-primary);
}

/* Títulos principais em amarelo dourado (sobrescreve has-text-light) */
h2.title,
h2.title.has-text-light {
  color: #ffd700 !important;
  /* Amarelo dourado como na imagem */
  font-weight: 700;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

/* Subtítulos também em amarelo dourado */
h3.subtitle,
h3.subtitle.has-text-light {
  color: #ffd700 !important;
  /* Amarelo dourado para subtítulos também */
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}

/* ====================================
   BOTÕES
   ==================================== */

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
  color: #fff;
}

.button.is-primary:hover {
  background-color: #2366d1;
}

.button.is-danger.is-outlined {
  color: var(--negative-color);
  border-color: var(--negative-color);
  background-color: transparent;
}

.button.is-danger.is-outlined:hover {
  background-color: var(--negative-color);
  color: #fff;
}

/* ====================================
   LOADING E ANIMAÇÕES
   ==================================== */

.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Skeleton loading */
.quote-card-container.skeleton {
  background-color: #000000;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  min-height: 150px;
  position: relative;
  padding: 0;
}

.quote-card-container.skeleton::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      var(--bg-tertiary) 25%,
      rgba(255, 255, 255, 0.05) 50%,
      var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.quote-card-container.skeleton .skeleton-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 0.5fr;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: #000000;
  border-bottom: 1px solid #333;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.quote-card-container.skeleton .skeleton-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 0.5fr;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.quote-card-container.skeleton .skeleton-cell {
  height: 16px;
  background: linear-gradient(90deg,
      var(--bg-tertiary) 25%,
      rgba(255, 255, 255, 0.05) 50%,
      var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 3px;
}

.quote-card-container.skeleton .skeleton-cell:nth-child(1) {
  width: 60%;
}

.quote-card-container.skeleton .skeleton-cell:nth-child(2),
.quote-card-container.skeleton .skeleton-cell:nth-child(3),
.quote-card-container.skeleton .skeleton-cell:nth-child(4),
.quote-card-container.skeleton .skeleton-cell:nth-child(5) {
  width: 80%;
}

.quote-card-container.skeleton .skeleton-cell:nth-child(6) {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

/* Skeleton dentro de indices-item */
.indices-item .quote-card-container.skeleton {
  min-height: 120px;
}

.indices-item .quote-card-container.skeleton .skeleton-header,
.indices-item .quote-card-container.skeleton .skeleton-row {
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.8fr 0.4fr;
  padding: 0.3rem 0.5rem;
  gap: 0.3rem;
}

.indices-item .quote-card-container.skeleton .skeleton-cell {
  height: 12px;
}

.indices-item .quote-card-container.skeleton .skeleton-cell:nth-child(6) {
  width: 16px;
  height: 16px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ====================================
   TAGS E BADGES
   ==================================== */

.tag.is-info {
  background-color: var(--primary-color);
  color: #fff;
}

/* ====================================
   FOOTER
   ==================================== */

.footer.has-background-dark {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */

@media screen and (max-width: 768px) {
  .container-fluid {
    padding: 0 0.75rem;
  }

  .quotes-table {
    font-size: 0.85rem;
  }

  .quotes-table thead th,
  .quotes-table tbody td {
    padding: 0.5rem;
  }

  .title.is-3 {
    font-size: 1.5rem;
  }

  .navbar-menu {
    background-color: var(--bg-secondary);
  }

  .login-box {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .quotes-table {
    font-size: 0.75rem;
  }

  .quotes-table thead th,
  .quotes-table tbody td {
    padding: 0.35rem;
  }

  .title.is-3 {
    font-size: 1.25rem;
  }

  .subtitle.is-5 {
    font-size: 1rem;
  }
}

/* ====================================
   UTILITÁRIOS
   ==================================== */

.has-text-centered {
  text-align: center;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 1.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-5 {
  padding-bottom: 1.5rem;
}

/* ====================================
   SCROLLBAR CUSTOMIZADA
   ==================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* ====================================
   MENSAGENS DE ERRO E SUCESSO
   ==================================== */

.help.is-danger {
  color: var(--negative-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.notification.is-success {
  background-color: #48c774;
  color: #fff;
}

/* ====================================
   MOBILE MENU TOGGLE
   ==================================== */

.navbar-burger {
  color: var(--text-primary);
}

.navbar-burger:hover {
  background-color: var(--bg-tertiary);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ====================================
   TRANSIÇÕES E ANIMAÇÕES
   ==================================== */

.box,
.button,
.input,
.navbar-item,
.quote-row {
  transition: all 0.3s ease;
}

.button:hover,
.navbar-item:hover {
  transform: translateY(-2px);
}

/* Fade in animation para tabelas */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-row {
  animation: fadeIn 0.3s ease-in-out;
}

/* Animação de atualização em tempo real */
.quote-row.updated {
  animation: updatePulse 0.5s ease-in-out;
}

@keyframes updatePulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.01);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation para valores atualizados */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.updated {
  animation: pulse 0.5s ease-in-out;
}

/* ====================================
   ACESSIBILIDADE
   ==================================== */

.button:focus,
.input:focus,
.select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Melhor contraste para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ====================================
   NOTIFICAÇÕES FLUTUANTES
   ==================================== */

.notification.is-danger.is-light {
  background-color: rgba(241, 70, 104, 0.1);
  color: var(--negative-color);
  border: 1px solid var(--negative-color);
}

/* ====================================
   MELHORIAS DE PERFORMANCE
   ==================================== */

/* Otimização de renderização */
.table-wrapper {
  will-change: scroll-position;
}

.video-wrapper {
  will-change: transform;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ====================================
   MODAL DO GRÁFICO
   ==================================== */

.modal {
  display: none;
}

.modal.is-active {
  display: flex;
}

.modal-background {
  background-color: rgba(0, 0, 0, 0.86);
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 95vw;
  width: 1200px;
  max-height: 95vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.chart-modal-card {
  background-color: var(--bg-secondary);
}

.modal-card-head {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
}

.modal-card-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-card-title i {
  color: var(--primary-color);
}

.modal-card-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  height: 100%;
  min-height: 600px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

#chartContainer {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.modal-card-foot {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
}

.modal-card-foot .button {
  margin-left: 0.5rem;
}

/* Botão de fechar da modal */
.modal-card-head .delete {
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-card-head .delete:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Responsividade da modal */
@media screen and (max-width: 768px) {
  .modal-card {
    width: 95vw;
    max-height: 95vh;
    height: 90vh;
  }

  .modal-card-body {
    padding: 1rem;
    min-height: 500px;
  }

  #chartContainer {
    height: 500px !important;
    min-height: 500px;
  }
}

@media screen and (max-width: 480px) {
  .modal-card {
    width: 100vw;
    max-height: 100vh;
    height: 95vh;
    border-radius: 0;
  }

  .modal-card-head,
  .modal-card-foot {
    padding: 0.75rem 1rem;
  }

  .modal-card-body {
    padding: 0.75rem;
    min-height: 400px;
  }

  #chartContainer {
    height: 400px !important;
    min-height: 400px;
  }
}
