/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for Theme */
:root {
  --primary-color: #48bb78;
  --primary-dark: #38a169;
  --primary-light: #68d391;
  --primary-lightest: #dcfce7;
}

/* Base Reset and Mobile Optimization */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 1vh;
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: background 0.5s ease;
  background-attachment: fixed;
}

.container {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 1200px;
  color: #2d3748;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.5s ease;
  margin-bottom: 1rem;
}

.container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--primary-light), #4fd1c7);
  border-radius: 27px;
  z-index: -1;
  transition: background 0.5s ease;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 3rem;
  font-weight: 1000;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.5s ease;
}

.subtitle {
  font-size: 1rem;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-light));
  border-radius: 2px;
  margin: 1rem 0;
  transition: background 0.5s ease;
}

/* Tab Container Styles */
.tab-container {
  margin-bottom: 0;
}

.tab-buttons {
  display: flex;
  background-color: #f7fafc;
  border-radius: 12px 12px 0 0;
  padding: 0.5rem;
  gap: 0.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: #718096;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
  border: 1px solid transparent;
}

.tab-btn:hover:not(.active) {
  background-color: #e2e8f0;
  color: #2d3748;
}

/* Tab Content Styles */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Age Warning Styles */
.age-warning {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 1rem;
  margin: 0.5rem 0 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideDown 0.3s ease;
}

.age-warning-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.age-warning-content h4 {
  color: #b91c1c;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.age-warning-content p {
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

/* Section Titles */
.section-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem 0;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.05));
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.5s ease;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #2d3748;
}

input[type=number], select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background-color: #f7fafc;
  transition: all 0.3s ease;
  color: #2d3748;
}

input[type=number]:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

input[type=number]::placeholder {
  color: #a0aec0;
}

/* Calculated Field Styles */
.calculated-field {
  background: linear-gradient(135deg, #e6fffa, #b2f5ea);
  border: 2px solid #38b2ac;
  border-radius: 16px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.calculated-field label {
  color: #2c7a7b;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calculated-field label::before {
  content: "🧮";
  font-size: 1rem;
}

.calculated-value {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 0.75rem;
  border: 2px solid #38b2ac;
  min-height: 50px;
}

.calculated-value span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c7a7b;
}

/* Slider Styles */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 0.75rem 0;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  cursor: pointer;
  margin-top: -10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.4);
}

input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e0);
  border-radius: 3px;
  position: relative;
}

.slider-container {
  background-color: #f7fafc;
  padding: 1rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.slider-container:hover {
  border-color: #cbd5e0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #718096;
}

/* Slider Value Input Boxes */
.slider-value-input {
  font-weight: 600;
  color: var(--primary-color);
  background-color: #ffffff;
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  width: 25%;
  max-width: 120px;
  min-width: 80px;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-family: 'Lexend', sans-serif;
  cursor: text;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  flex-shrink: 0;
  font-weight: 700;
}

.slider-value-input::-webkit-outer-spin-button,
.slider-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slider-value-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15);
  transform: scale(1.05);
}

.slider-value-input:hover {
  border-color: var(--primary-color);
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(72, 187, 120, 0.25);
}

.slider-value-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* Enhanced Notched Slider Styles */
.notched-slider-container {
  background-color: #f7fafc;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.notched-slider-container:hover {
  border-color: #cbd5e0;
}

.notched-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e0);
  outline: none;
  position: relative;
  margin: 1.5rem 0 1rem 0;
}

.notched-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4);
  border: 3px solid white;
}

.notched-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.5);
}

.notched-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4);
}

.notches-container {
  position: relative;
  margin: 0.5rem 0;
}

.notch {
  position: absolute;
  width: 3px;
  height: 12px;
  background: #cbd5e0;
  border-radius: 2px;
  top: -3px;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.notch.active {
  background: var(--primary-color);
  height: 16px;
  top: -5px;
  box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

/* Enhanced Notched Labels */
.notched-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  gap: 0.25rem;
}

.notched-label {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
  font-weight: 500;
  padding: 0.75rem 0.25rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  line-height: 1.2;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notched-label.clickable {
  cursor: pointer;
  user-select: none;
}

.notched-label.clickable:hover {
  background-color: rgba(72, 187, 120, 0.05);
  border-color: rgba(72, 187, 120, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.notched-label.active {
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.05));
  border-color: var(--primary-color);
  font-weight: 600;
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(72, 187, 120, 0.2);
}

.notched-label.active.clickable:hover {
  transform: scale(1.02) translateY(-1px);
}

.current-selection {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Radio Button Styles */
.radio-group {
  background-color: #f7fafc;
  padding: 1rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.radio-group:hover {
  border-color: #cbd5e0;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.radio-option:last-child {
  margin-bottom: 0;
}

.radio-option:hover {
  border-color: var(--primary-color);
  background-color: rgba(72, 187, 120, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(72, 187, 120, 0.1);
}

.radio-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.05));
  box-shadow: 0 3px 8px rgba(72, 187, 120, 0.2);
}

.radio-input {
  width: 18px;
  height: 18px;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-input:after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s ease;
}

.radio-option.selected .radio-input {
  border-color: var(--primary-color);
  background-color: white;
}

.radio-option.selected .radio-input:after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-label {
  font-weight: 500;
  color: #2d3748;
  font-size: 0.95rem;
  line-height: 1.3;
  user-select: none;
}

.radio-option.selected .radio-label {
  color: #2d3748;
  font-weight: 600;
}

/* Hide actual radio inputs */
input[type="radio"] {
  display: none;
}

/* Button Container and Button Styles */
.button-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.calculate-btn, .reset-btn {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.calculate-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.4);
}

.calculate-btn:active {
  transform: translateY(0);
}

.calculate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.reset-btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.reset-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.calculate-btn:hover .btn-icon {
  transform: translateX(3px);
}

.reset-btn:hover .btn-icon {
  transform: rotate(180deg);
}

/* Result Box Styles */
.output {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.result-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.result-text p {
  margin: 0.25rem 0;
  font-size: 1rem;
}

#riskResult, #riskLevel {
  font-weight: 700;
  font-size: 1.2rem;
}

.output.low {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border-color: #22c55e;
}

.output.intermediate {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #a16207;
  border-color: #f59e0b;
}

.output.high {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
  border-color: #ef4444;
}

/* Checklist Specific Styles */
.checklist-section {
  padding: 1rem 0;
}

.checklist-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3748;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6300, #e55a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checklist-subtitle {
  font-size: 1rem;
  color: #718096;
  text-align: center;
  margin-bottom: 1.5rem;
}

.checklist-disclaimer {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #92400e;
  font-size: 0.85rem;
}

/* Checklist Table Styles */
.checklist-table-container {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.85rem;
}

.checklist-table th {
  background: linear-gradient(135deg, #ff6300, #e55a00);
  color: white;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  border: none;
}

.checklist-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.col-step {
  width: 30%;
}

.col-risk {
  width: 20%;
}

.col-checkbox {
  width: 10%;
  text-align: center;
}

.step-cell {
  background-color: #f8fafc;
  border-left: 4px solid #ff6300;
}

.step-header {
  font-weight: 700;
  color: #ff6300;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step-question {
  color: #2d3748;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0.5rem 0;
}

.risk-cell {
  text-align: center;
  font-weight: 500;
}

.risk-content {
  margin-bottom: 0.25rem;
  color: #2d3748;
}

.risk-spacer {
  height: 0.75rem;
}

.pathway-text {
  color: #1a202c;
  font-weight: 600;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: #2d3748;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -90px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.checkbox-cell {
  text-align: center;
  vertical-align: middle;
}

.step-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ff6300;
  cursor: pointer;
}

/* Checklist Actions */
.checklist-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6300, #e55a00);
  color: white;
  box-shadow: 0 3px 8px rgba(255, 99, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 99, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ff6300;
  border: 2px solid #ff6300;
}

.btn-secondary:hover {
  background: #ff6300;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(255, 99, 0, 0.3);
}

/* Traffic Light Styles */
.traffic-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.traffic-light-container {
  background: #2d3748;
  border-radius: 40px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.traffic-light-bulb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.traffic-light-bulb.active {
  opacity: 1;
  box-shadow: 0 0 16px currentColor;
  border-color: currentColor;
}

.traffic-light-bulb.low {
  background: #22c55e;
  color: white;
}

.traffic-light-bulb.intermediate {
  background: #f59e0b;
  color: white;
}

.traffic-light-bulb.high {
  background: #ef4444;
  color: white;
}

/* Disclaimer Styles - Inside container */
.disclaimer {
  background-color: #f7fafc;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  font-size: 0.85rem;
  color: #718096;
  text-align: center;
  padding: 0.75rem;
  margin: 1rem 0 0 0;
  width: 100%;
  display: block;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Error Message Styles */
.error-message {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  border: 2px solid #dc3545;
  text-align: center;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Temperature Field Conditional Visibility */
#temperatureField {
  display: none;
}

#temperatureField.show {
  display: block;
}

/* Copy Button Styles */
.copy-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.75rem;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.copy-success {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

/* Mobile and Tablet Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 0.5vh;
  }
  
  .container {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
  
  .tab-btn {
    margin-bottom: 0.5rem;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .output {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .result-icon {
    font-size: 2rem;
  }
  
  .notched-labels {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .notched-label {
    text-align: center;
    min-height: 40px;
    padding: 0.5rem 0.25rem;
  }
  
  .calculated-field {
    padding: 0.75rem;
  }
  
  .calculated-value {
    padding: 0.5rem;
    min-height: 40px;
  }
  
  .calculated-value span {
    font-size: 1.1rem;
  }
  
  .slider-value-input {
    width: 30%;
    max-width: 100px;
    min-width: 70px;
    padding: 0.4rem 0.2rem;
    font-size: 0.85rem;
  }
  
  .checklist-table {
    font-size: 0.75rem;
  }
  
  .checklist-table th,
  .checklist-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .checklist-actions {
    flex-direction: column;
  }
  
  .traffic-light-bulb {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .age-warning {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .age-warning-icon {
    align-self: center;
  }
  
  .notched-slider-container {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .slider-labels {
    font-size: 0.75rem;
  }
  
  .slider-value-input {
    width: 35%;
    max-width: 80px;
    min-width: 60px;
    padding: 0.3rem 0.15rem;
    font-size: 0.8rem;
  }
  
  .calculate-btn, .reset-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .calculated-field {
    padding: 0.5rem;
  }
  
  .calculated-field label {
    font-size: 0.8rem;
  }
  
  .checklist-table {
    font-size: 0.7rem;
  }
  
  .traffic-light-bulb {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .age-warning {
    padding: 0.75rem;
  }
  
  .age-warning-content h4 {
    font-size: 0.9rem;
  }
  
  .age-warning-content p {
    font-size: 0.8rem;
  }
  
  .notched-slider-container {
    padding: 0.75rem 0.5rem;
  }
  
  .notched-label {
    min-height: 35px;
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
  }
}