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

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.app {
  max-width: 400px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
}

header {
  background: #667eea;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.add-dance {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #eee;
}

.add-dance input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

#danceDuration {
  max-width: 80px;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#addBtn {
  background: #667eea;
  color: white;
}

#addBtn:active {
  background: #5a6fd8;
}

.total-time {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  text-align: center;
  font-weight: 600;
  color: #555;
}

.dance-list {
  padding: 0.5rem;
}

.dance-item {
  display: flex;
  align-items: center;
  background: white;
  margin: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dance-item:active {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dance-item.dragging {
  opacity: 0.5;
}

.drag-handle {
  margin-right: 1rem;
  color: #999;
  font-size: 1.2rem;
}

.dance-info {
  flex: 1;
}

.dance-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.dance-duration {
  color: #666;
  font-size: 0.9rem;
}

.delete-btn {
  background: #ff4757;
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.delete-btn:active {
  background: #ff3742;
}

.clear-btn {
  width: calc(100% - 2rem);
  margin: 1rem;
  background: #ff4757;
  color: white;
}

.clear-btn:active {
  background: #ff3742;
}

.sortable-ghost {
  opacity: 0.4;
}

@media (max-width: 480px) {
  .app {
    max-width: none;
  }
}
