/* Responsive SCHD Dividend Calculator */
.schd-calc-container {
  max-width: 100%;
  margin: auto;
  padding: 1rem;
  font-family: Arial, sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.schd-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.schd-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.schd-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  flex: 1 1 auto;
  text-align: center;
}
.schd-tab.active {
  background: #2563eb;
  color: #fff;
}

.schd-tab-content {
  display: none;
}
.schd-tab-content.active {
  display: block;
}

label {
  display: block;
  margin: 0.5rem 0;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

input {
  width: 100%;
  padding: 0.4rem;
  margin-top: 0.2rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.schd-btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
}
.schd-btn:hover {
  background: #1d4ed8;
}

.results-wrapper {
  overflow-x: auto;
}

.responsive-table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
}
.responsive-table th, .responsive-table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: center;
}
.responsive-table th {
  background: #f3f4f6;
}

#projectionChart {
  width: 100% !important;
  height: auto !important;
}

/* Extra small devices adjustments */
@media (max-width: 500px) {
  .schd-tabs {
    flex-direction: column;
  }
  .schd-tab {
    width: 100%;
  }
}
