/* ===== COMPOUND CALCULATOR STYLES ===== */
.calc-section {
  padding: 60px 0 80px;
}

.container {
  width: min(1350px, calc(100% - 32px));
  margin: 0 auto;
}

.tab-container {
  background: #081120;
  border-radius: 20px;
  padding: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  border: 1px solid rgba(117, 164, 255, 0.12);
}

.tab-btn-main {
  background: transparent;
  border: none;
  padding: 14px 42px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 48px;
  color: #7081a8;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn-main:hover {
  color: #eef4ff;
  background: rgba(88, 166, 255, 0.1);
}

.tab-btn-main.active {
  background: linear-gradient(135deg, #3b82ff, #31d67b);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(49, 214, 123, 0.3);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-pane.active-pane {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px);}
  to { opacity: 1; transform: translateY(0);}
}

.calc-card {
  padding: 40px 44px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7081a8;
  margin-bottom: 4px;
}

.field-group input, 
.field-group select {
  width: 100%;
  background: #0a1225 !important;
  border: 1px solid rgba(88, 166, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  color: #eef4ff !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.field-group input:focus, 
.field-group select:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2) !important;
}

.field-group input::placeholder {
  color: #4a5a7a;
}

.field-group select option {
  background: #0a1225 !important;
  color: #eef4ff !important;
  padding: 12px !important;
}

.field-group input[type="date"] {
  color-scheme: dark;
}

/* ===== IMPROVED WEEKEND TOGGLE - More Interactive ===== */
.inline-radios {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  background: #0a1225;
  border-radius: 60px;
  padding: 6px;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.inline-radios label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  color: #7081a8;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50px;
  background: transparent;
}

.inline-radios label:hover {
  color: #eef4ff;
  background: rgba(88, 166, 255, 0.1);
}

/* Hide the default radio buttons */
.inline-radios input[type="radio"] {
  display: none;
}

/* Style for selected option */
.inline-radios input[type="radio"]:checked + label {
  background: linear-gradient(135deg, #3b82ff, #31d67b);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(49, 214, 123, 0.3);
}

/* Custom indicator for selected state */
.inline-radios label::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-block;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.inline-radios input[type="radio"]:checked + label::before {
  background: #ffffff;
  border-color: #ffffff;
  opacity: 1;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Add icons for better visual */
.inline-radios label:first-child::after {
  content: '📅';
  margin-left: 6px;
  font-size: 1rem;
}

.inline-radios label:last-child::after {
  content: '⏸️';
  margin-left: 6px;
  font-size: 1rem;
}

.number-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.number-group input {
  flex: 1;
  min-width: 80px;
}

small.helper-text {
  color: #7081a8;
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
}

.action-buttons {
  display: flex;
  gap: 20px;
  margin: 32px 0 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 48px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82ff, #31d67b) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(49, 214, 123, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(49, 214, 123, 0.4) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(88, 166, 255, 0.25) !important;
  color: #eef4ff !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  border-color: #58a6ff !important;
}

.btn-export {
  background: rgba(88, 166, 255, 0.12) !important;
  border: 1px solid #58a6ff !important;
  color: #73c2ff !important;
}

.btn-export:hover {
  background: rgba(88, 166, 255, 0.25) !important;
  transform: translateY(-2px);
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  background: #0a1225;
  border-radius: 24px;
  padding: 24px 32px;
  border: 1px solid rgba(88, 166, 255, 0.1);
}

.stat-card {
  flex: 1;
  min-width: 160px;
  padding: 8px 0;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #7081a8;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #31d67b;
  line-height: 1.2;
  word-break: break-word;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: 20px;
  background: #0a1225;
  padding: 4px;
  max-height: 520px;
  overflow-y: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.results-table th {
  text-align: left;
  padding: 16px 14px;
  background: linear-gradient(135deg, #0f1a35, #0a1225);
  color: #58a6ff;
  font-weight: 700;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(88, 166, 255, 0.2);
}

.results-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #eef4ff;
}

.results-table tr:hover {
  background: rgba(88, 166, 255, 0.05);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #7081a8;
}

.empty-state i {
  font-size: 52px;
  margin-bottom: 20px;
  opacity: 0.4;
}

.copyright-note {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 24px;
  color: #7081a8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .calc-section {
    padding: 40px 0 60px;
  }
  
  .calc-card {
    padding: 24px;
  }
  
  .tab-btn-main {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .form-grid {
    gap: 20px;
  }
  
  .action-buttons {
    gap: 12px;
  }
  
  .btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }
  
  .summary-stats {
    padding: 18px 20px;
    gap: 16px;
  }
  
  .tab-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Improved weekend toggle on mobile */
  .inline-radios {
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
    padding: 8px;
  }
  
  .inline-radios label {
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .inline-radios label::before {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .calc-card {
    padding: 16px;
  }
  
  .number-group {
    flex-direction: column;
  }
  
  .stat-value {
    font-size: 1.1rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 10px 8px;
    font-size: 0.7rem;
  }
  
  .inline-radios label {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}