/* Stage Timer Styles */

.timer-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.timer-icon {
  font-size: 1.5rem;
}

.timer-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.timer-display {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Courier New', Monaco, monospace;
  text-align: center;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.timer-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.timer-btn-start {
  background: #10b981;
  color: white;
}

.timer-btn-pause {
  background: #f59e0b;
  color: white;
}

.timer-btn-finish {
  background: #3b82f6;
  color: white;
}

.timer-btn-reset {
  background: #ef4444;
  color: white;
}

.timer-info {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
}

.timer-completion {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.timer-completion strong {
  color: #ffd700;
}

/* Summary table styles */
.time-summary-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-summary-table th {
  background: #667eea;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.time-summary-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.time-summary-table tr:last-child td {
  border-bottom: none;
}

.time-summary-table tr:hover {
  background: #f9fafb;
}

.total-time-row {
  background: #f3f4f6;
  font-weight: bold;
}

.total-time-row td {
  border-top: 2px solid #667eea;
}

/* Finish Stage Button */
.finish-stage-container {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.finish-stage-btn {
  background: white;
  color: #059669;
  border: none;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.finish-stage-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: #f0fdf4;
}

.finish-stage-btn:active {
  transform: translateY(-1px);
}

.finish-stage-info {
  color: white;
  font-size: 0.95rem;
  margin-top: 15px;
  opacity: 0.95;
}

/* Responsive design */
@media (max-width: 600px) {
  .timer-display {
    font-size: 2rem;
  }
  
  .timer-controls {
    flex-direction: column;
  }
  
  .timer-btn {
    width: 100%;
  }
  
  .finish-stage-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px 30px;
  }
}
