/* ACFT Calculator Specific Styles */

.calculator-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-header h2 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.calculator-form .form-group {
  margin-bottom: 1rem;
}

.calculator-form label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
  display: block;
  font-size: 0.9rem;
}

.calculator-form .form-control,
.calculator-form .form-select {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.calculator-form .form-control:focus,
.calculator-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(75, 83, 32, 0.25);
}

.event-input-group {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.event-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.event-icon {
  background: #007bff;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.time-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-input-separator {
  font-size: 1.2rem;
  font-weight: bold;
}

.points-display {
  background: #e9ecef;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.calculator-results {
  display: none;
  opacity: 0;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  transition: opacity 0.3s ease;
}

.calculator-results.show {
  display: block;
  opacity: 1;
}

.results-total {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.results-message {
  text-align: center;
  color: #6c757d;
  margin-bottom: 2rem;
}

.results-details {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem;
}

.event-range-slider {
  padding: 0 0.5rem;
}

.form-range::-webkit-slider-thumb {
  background: var(--primary-color);
}

.form-range::-moz-range-thumb {
  background: var(--primary-color);
}

.form-range::-ms-thumb {
  background: var(--primary-color);
}

.btn-calculate, .btn-reset {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.btn-calculate {
  background: #28a745;
  color: white;
  padding: 0.75rem 2rem;
}

.btn-calculate:hover {
  background: #218838;
  color: white;
}

.btn-reset {
  font-weight: 600;
  margin-left: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Score badges */
.score-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.score-badge-excellent {
  background-color: #28a745;
  color: white;
}

.score-badge-good {
  background-color: #17a2b8;
  color: white;
}

.score-badge-adequate {
  background-color: #ffc107;
  color: #212529;
}

.score-badge-poor {
  background-color: #dc3545;
  color: white;
}

/* Results sharing */
.results-sharing {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.results-sharing .btn {
  margin: 0 0.5rem;
}

/* Results Tabs */
.results-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  color: #6c757d;
  cursor: pointer;
  border-radius: 4px;
}

.tab-btn:hover {
  background: #f8f9fa;
}

.tab-btn.active {
  background: #007bff;
  color: white;
}

.tab-content {
  display: none;
}

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

/* Event Score Chart */
.event-score-chart {
  padding: 1rem;
}

.event-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.event-bar-container {
  height: 24px;
  background: #e9ecef;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
}

.event-bar {
  height: 100%;
  background: #007bff;
  border-radius: 12px;
  width: 0;
  transition: width 0.3s ease;
}

.required-indicator {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calculator-container {
    padding: 1rem;
  }
  
  .event-input-group {
    padding: 1rem;
  }
  
  .time-input {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .results-tabs {
    flex-wrap: wrap;
  }
} 