/* ==========================================================================
   SEÇÃO 06: GESTÃO FINANCEIRA EM TEMPO REAL (Figma Node 559:1349 / 1-1368)
   ========================================================================== */

.section-gestao {
  padding: 60px 0 100px;
  background-color: var(--color-bg-primary, #ffffff);
}

.gestao-card {
  background: #4e4e4e;
  border-radius: 55px;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Coluna Esquerda */
.gestao-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gestao-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  background: #343434;
  color: #ffffff;
  border-radius: 1000px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

.gestao-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  line-height: 1.18;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
}

.gestao-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

/* Lista 01, 02, 03 com divisores */
.gestao-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gestao-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.gestao-item-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #6eddd4;
  line-height: 1.4;
  min-width: 28px;
}

.gestao-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gestao-item-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.gestao-item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #c9d0ce;
  margin: 0;
}

/* Coluna Direita: Dashboard Card */
.gestao-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gestao-dashboard-card {
  background: #5b5b5b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  padding: 42px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Donut Chart */
.gestao-chart-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gestao-donut-chart {
  --p1: 79%;
  --p2: 91%;
  --p3: 100%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(
    #6eddd4 0% var(--p1, 79%),
    #22948b var(--p1, 79%) var(--p2, 91%),
    #cae2e2 var(--p2, 91%) var(--p3, 100%),
    rgba(255, 255, 255, 0.08) var(--p3, 100%) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gestao-donut-hole {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: #5b5b5b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gestao-donut-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.gestao-donut-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #d1d7d6;
  margin-top: 2px;
}

/* Breakdown List */
.gestao-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gestao-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  padding: 12px 16px;
  transition: background 0.2s ease;
}

.gestao-breakdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gestao-breakdown-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-aprovado {
  background-color: #6eddd4;
  box-shadow: 0 0 8px rgba(110, 221, 212, 0.5);
}

.dot-pendente {
  background-color: #22948b;
}

.dot-glosado {
  background-color: #cae2e2;
}

.dot-pago {
  background-color: #ffffff;
}

.status-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #d7dddb;
}

.gestao-breakdown-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Responsividade */
@media (max-width: 1024px) {
  .gestao-card {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    border-radius: 40px;
  }
  
  .gestao-visual {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .gestao-card {
    padding: 40px 24px;
    border-radius: 30px;
  }

  .gestao-title {
    font-size: 34px;
  }

  .gestao-subtitle {
    font-size: 16px;
  }

  .gestao-dashboard-card {
    padding: 28px 20px;
  }

  .gestao-donut-chart {
    width: 200px;
    height: 200px;
  }

  .gestao-donut-hole {
    width: 136px;
    height: 136px;
  }

  .gestao-donut-value {
    font-size: 34px;
  }
}
