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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}

.start-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
}

.start-time-row label {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

#startTime {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
  color: #333;
  background: #fafafa;
}

.input-area {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.input-area input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  min-width: 0;
}

.input-area input[type="number"] {
  width: 80px;
  padding: 10px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  text-align: center;
}

.input-area input:focus {
  outline: none;
  border-color: #4a90d9;
}

#addBtn {
  padding: 10px 16px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#addBtn:hover {
  background: #357abd;
}

#taskList {
  list-style: none;
  margin-bottom: 16px;
}

#taskList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  gap: 8px;
}

.task-name {
  flex: 1;
  font-size: 0.95rem;
  word-break: break-all;
}

.task-minutes {
  color: #4a90d9;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.delete-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.delete-btn:hover {
  color: #e55;
}

.summary {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.95rem;
}

.summary-row span:first-child {
  color: #666;
}

.summary-row span:last-child {
  font-weight: 700;
  font-size: 1.05rem;
  color: #222;
}

#endTime {
  color: #4a90d9 !important;
}

.clear-btn {
  width: 100%;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
}

.clear-btn:hover {
  background: #eee;
  color: #e55;
  border-color: #e55;
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.2rem;
  }

  .input-area input[type="number"] {
    width: 64px;
  }

  #addBtn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
