/* =========================
   TC INDEX WIDGET (RESPONSIVO)
   ========================= */

.tc-widget {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02);
  margin: 0 auto;
}

/* HEADER */
.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tc-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #eaeaea;
  white-space: nowrap;
}

/* STATUS */
.tc-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #1a1a1a;
  white-space: nowrap;
}

.tc-status.up {
  color: #00ff9c;
}

.tc-status.down {
  color: #ff4d4d;
}

.tc-status.stable {
  color: #ffd564;
}

/* GRÁFICO */
#tcChart {
  display: block;
  width: 100%;
  height: 100px !important;
  margin-top: 4px;
}

/* FOOTER */
.tc-footer {
  margin-top: 4px;
  text-align: right;
}

.tc-footer small {
  font-size: 10px;
  color: #888;
}

/* =========================
   BREAKPOINTS
   ========================= */

/* Tablets */
@media (max-width: 768px) {
  .tc-widget {
    max-width: 375px;
    padding: 12px;
  }

  .tc-header h3 {
    font-size: 13px;
  }

  #tcChart {
    height: 100px !important;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .tc-widget {
    padding: 10px 10px;
    border-radius: 10px;
    max-width: 375px;
  }

  .tc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tc-header h3 {
    font-size: 13px;
  }

  .tc-status {
    font-size: 10px;
    padding: 2px 6px;
  }

  #tcChart {
    height: 70px !important;
  }

  .tc-footer {
    text-align: left;
  }

  .tc-footer small {
    font-size: 9px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  #tcChart {
    height: 60px !important;
    max-width: 350px;
  }
}
