* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #212121;
}

.container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Header */
.header {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
  font-weight: 500;
}

.settings-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Screen */
.main-screen, .settings-screen, .complete-screen {
  display: none;
  padding: 30px 20px;
}

.main-screen.active, .settings-screen.active, .complete-screen.active {
  display: block;
}

.step-info {
  text-align: center;
  margin-bottom: 30px;
}

.step-number {
  color: #2196F3;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.step-name {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 5px;
}

.step-description {
  color: #666;
  font-size: 14px;
}

/* Phase Display */
.phase-display {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: center;
}

.phase-title {
  font-size: 18px;
  font-weight: 500;
  color: #2196F3;
  margin-bottom: 15px;
}

.phase-time {
  font-size: 48px;
  font-weight: 300;
  font-family: 'Roboto Mono', monospace;
  color: #212121;
  margin-bottom: 15px;
}

.phase-instruction {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Icons Display */
.icons-display {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.icon-item {
  text-align: center;
}

.icon-emoji {
  font-size: 40px;
  margin-bottom: 5px;
}

.icon-label {
  font-size: 12px;
  color: #666;
}

/* Beat Display */
.beat-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.beat-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 24px;
  height: 30px;
}

.beat-icons.eight-beats {
  gap: 4px;
}

.beat-icons span {
  width: 60px;
  display: inline-block;
  text-align: center;
}

.beat-icons.eight-beats span {
  width: 38px;
  font-size: 16px;
}

.beat-numbers {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.beat-numbers.eight-beats {
  gap: 4px;
}

.beat {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: #666;
  transition: all 0.1s ease;
}

.beat-numbers.eight-beats .beat {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.beat.active {
  background: #4CAF50;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #2196F3;
  color: white;
}

.btn-primary:hover {
  background: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Settings Screen */
.settings-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
}

.settings-title {
  font-size: 24px;
  font-weight: 500;
}

.settings-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #2196F3;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: #e0e0e0;
}

.checkbox-item input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-item label {
  cursor: pointer;
  flex: 1;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.radio-item:hover {
  background: #e0e0e0;
}

.radio-item input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.radio-item label {
  cursor: pointer;
  flex: 1;
}

/* Complete Screen */
.complete-screen {
  text-align: center;
  padding: 60px 20px;
}

.complete-emoji {
  font-size: 80px;
  margin-bottom: 20px;
}

.complete-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}

.complete-message {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 480px) {
  .beat {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .phase-time {
    font-size: 40px;
  }

  .icon-emoji {
    font-size: 32px;
  }

  .beat-icons {
    font-size: 20px;
  }
}
