/* Timer & Stopwatch Styles */

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tool-content {
  display: block;
}

.tab-btn {
  padding: 10px 20px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.option-group label {
  margin-bottom: 0;
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  font-weight: 500;
}

.tab-btn:hover:not(.active) {
  color: #333;
  background-color: #f5f5f5;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timer Styles */
.timer-container,
.stopwatch-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Time Display */
.timer-display,
.stopwatch-display {
  text-align: center;
  margin-bottom: 20px;
}

.time-display {
  font-size: 48px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  color: #333;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Timer Controls */
.timer-controls,
.stopwatch-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timer-inputs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.time-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-input-group input {
  width: 80px;
  height: 60px;
  font-size: 24px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 5px;
}

.time-input-group label {
  font-size: 14px;
  color: #666;
}

/* Buttons */
.timer-buttons,
.stopwatch-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.secondary-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.secondary-btn:hover:not(:disabled) {
  background-color: #545b62;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Lap Times */
.lap-times {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background-color: #f8f9fa;
}

.lap-time {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-family: 'Courier New', monospace;
}

.lap-time:last-child {
  border-bottom: none;
}

.lap-number {
  font-weight: 500;
  color: #666;
}

.lap-time-value {
  font-weight: 500;
  color: #333;
}

/* Tips Section */
.timer-tips {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.timer-tips h4 {
  margin-top: 0;
  color: #333;
  font-size: 18px;
}

.timer-tips ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.timer-tips li {
  margin-bottom: 8px;
  color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .time-display {
    font-size: 36px;
    padding: 15px;
  }

  .timer-inputs {
    gap: 10px;
  }

  .time-input-group input {
    width: 60px;
    height: 50px;
    font-size: 20px;
  }

  .timer-buttons,
  .stopwatch-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .secondary-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .time-display {
    font-size: 28px;
    padding: 10px;
  }

  .timer-inputs {
    gap: 5px;
  }

  .time-input-group input {
    width: 50px;
    height: 40px;
    font-size: 18px;
  }

  .tab-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}
