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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #ffb3d9 0%, #ff99cc 50%, #ff80bf 100%);
  min-height: 100vh;
  padding: 10px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
  overflow: hidden;
  min-height: 90vh;
}

.header {
  background: linear-gradient(45deg, #ff69b4, #ff1493);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.header h1 {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-display {
  font-size: clamp(16px, 3vw, 20px);
  opacity: 0.9;
}

.mode-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.main-content {
  padding: 30px;
}

.kid-mode {
  display: block;
}

.parent-mode {
  display: none;
}

.task-list {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.task-item {
  background: linear-gradient(45deg, #ffe4e1, #ffd1dc);
  border: 3px solid #ff69b4;
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 60px;
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.task-item.completed {
  background: linear-gradient(45deg, #c8e6c9, #a8d8a8);
  border-color: #4caf50;
  opacity: 0.7;
}

.task-checkbox {
  width: 25px;
  height: 25px;
  border: 3px solid #ff69b4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
}

.task-item.completed .task-checkbox {
  background: #4caf50;
  border-color: #4caf50;
}

.task-checkbox::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff69b4;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.task-item.completed .task-checkbox::after {
  content: "✓";
  background: transparent;
  color: white;
  font-weight: bold;
  font-size: 16px;
  transform: scale(1);
}

.task-icon {
  font-size: clamp(20px, 5vw, 28px);
  margin-left: 10px;
  flex-shrink: 0;
}

.task-text {
  flex: 1;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 600;
  color: #444;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #888;
}

.progress-section {
  background: linear-gradient(45deg, #fff0f5, #ffe4e1);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.progress-title {
  font-size: clamp(18px, 4vw, 24px);
  color: #ff1493;
  margin-bottom: 15px;
  font-weight: bold;
}

.progress-bar {
  background: #ffe4e1;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 2px solid #ff69b4;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #ff69b4, #ff1493);
  transition: width 0.5s ease;
  border-radius: 13px;
}

.progress-text {
  font-size: clamp(16px, 3vw, 18px);
  color: #ff1493;
  font-weight: bold;
}

.celebration {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: clamp(20px, 5vw, 28px);
  color: #ff1493;
  background: linear-gradient(45deg, #fff0f5, #ffe4e1);
  border-radius: 20px;
  margin: 20px 0;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Parent Mode Styles */
.parent-section {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.parent-section h3 {
  color: #ff1493;
  margin-bottom: 15px;
  font-size: 20px;
}

.add-task-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.add-task-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border: 2px solid #ff69b4;
  border-radius: 10px;
  font-size: 16px;
}

.add-task-form button {
  background: #ff69b4;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.add-task-form button:hover {
  background: #ff1493;
  transform: scale(1.05);
}

.parent-task-list {
  display: grid;
  gap: 10px;
}

.parent-task-item {
  background: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  transition: all 0.3s ease;
}

.parent-task-item:active {
  cursor: grabbing;
}

.parent-task-item.dragging {
  opacity: 0.5;
  transform: rotate(3deg) scale(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.parent-task-item.drag-over {
  border-color: #ff69b4;
  background: #fff0f5;
  transform: translateY(-2px);
}

.task-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.order-btn {
  background: #ff69b4;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.order-btn:hover {
  background: #ff1493;
  transform: scale(1.05);
}

.order-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.order-number {
  background: #ff69b4;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.delete-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .container {
    border-radius: 0;
    min-height: 100vh;
  }

  .main-content {
    padding: 20px;
  }

  .mode-toggle {
    position: relative;
    margin-bottom: 10px;
  }

  .add-task-form {
    flex-direction: column;
  }

  .add-task-form input {
    min-width: auto;
  }
}

/* Confetti canvas overlay */
.confetti-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
