body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0c0c0c;
  color: #f0f0f0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 1rem 2rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

#reset-btn, #save-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
}

#reset-btn:hover, #save-btn:hover {
  background-color: #2980b9;
}

.timeline-grid {
  padding: 2rem;
  overflow-x: auto;
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.city-name {
  width: 100px;
  text-align: right;
  padding-right: 1rem;
  font-weight: bold;
}

.city-row {
  position: relative;
}

.remove-city {
  margin-left: 8px;
  background: transparent;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1rem;
}

.city-name[contenteditable="true"] {
  border-bottom: 1px dashed #888;
}

.timeline-cells {
  display: flex;
  flex: 1;
}

.cell {
  width: 40px;
  height: 30px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cell.working-hour {
  background-color: #3498db;
  color: white;
}

.cell.current-hour {
  background-color: #2ecc71;
  font-weight: bold;
}

.cell.overlap-hour {
  background-color: #27ae60 !important;
  color: #fff;
}

.selectable:hover {
  background-color: #555 !important;
  cursor: pointer;
}

#share-summary {
  background-color: #222;
  color: #6be3a7;
  padding: 1rem;
  margin: 1rem 2rem;
  border-radius: 8px;
  white-space: pre-wrap;
  font-weight: bold;
}

#share-summary button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  margin-left: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .city-name {
    padding-bottom: 0.3rem;
  }
  .timeline-cells {
    flex-wrap: wrap;
  }
}

.city-input {
  padding: 1rem 2rem;
  display: flex;
  gap: 10px;
}

.city-input input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

.city-input button {
  background-color: #3498db;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.remove-city {
  background-color: #e74c3c;
  color: white;
  padding: 2px 6px;
  font-size: 0.7rem;
  border: none;
  border-radius: 3px;
  font-weight: normal;
  margin-left: 6px;
  opacity: 0.85;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.remove-city:hover {
  background-color: #c0392b;
  opacity: 1;
}

footer {
  background-color: #1B2631;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

