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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 20px;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.dark-mode {
  background: #1a1a1a;
  color: #ffffff;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.dark-mode .container {
  background: #2d2d2d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header h1 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 0;
}
.header p {
  font-size: 16px;
  opacity: 0.9;
}
.dark-mode .header {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.dark-mode-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}
.dark-mode-toggle:active {
  transform: translateY(-50%) scale(0.95);
}
.dark-mode-toggle .sun-icon {
  display: none;
  font-size: 18px;
  transition: opacity 0.2s ease;
}
.dark-mode-toggle .moon-icon {
  display: block;
  font-size: 18px;
  transition: opacity 0.2s ease;
}
.dark-mode .dark-mode-toggle .sun-icon {
  display: block;
}
.dark-mode .dark-mode-toggle .moon-icon {
  display: none;
}

.content {
  padding: 30px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}
.dark-mode .content {
  background: #2d2d2d;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
}
.dark-mode .input-label {
  color: #b0b0b0;
}

.search-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.2s ease, color 0.2s ease, text-align 0.2s ease;
  background: #f8f9fa;
  color: #333;
}
.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}
.search-input.selected {
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
}
.search-input.selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.2);
  border-radius: 12px;
  pointer-events: none;
}
.search-input.selected:focus {
  background: rgba(0, 0, 0, 0.1);
  border-color: #e1e5e9;
}
.dark-mode .search-input {
  background: #1a1a1a;
  border-color: #404040;
  color: #ffffff;
}
.dark-mode .search-input:focus {
  background: #2d2d2d;
  border-color: #667eea;
}
.dark-mode .search-input.selected {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .search-input.selected::before {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .search-input.selected:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #404040;
}

.search-results {
  position: relative;
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-list {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-list.hidden {
  display: none;
}
.dark-mode .search-list {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-item {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background-color: #f8f9fa;
}
.search-item.selected {
  background-color: #667eea;
  color: white;
}
.search-item .item-text {
  flex: 1;
  font-size: 16px;
}
.search-item .item-time {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 10px;
}
.search-item.add-new-item {
  background-color: #28a745;
  color: white;
}
.search-item.add-new-item:hover {
  background-color: #218838;
}
.dark-mode .search-item {
  border-bottom-color: #404040;
  color: #ffffff;
}
.dark-mode .search-item:hover {
  background-color: #1a1a1a;
}
.dark-mode .search-item.selected {
  background-color: #667eea;
  color: white;
}

.time-display {
  text-align: center;
  padding: 10px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 40px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.time-display p {
  margin: 0;
  padding: 5px;
}
.dark-mode .time-display {
  color: #b0b0b0;
}
.time-display #daysAgo {
  font-weight: 600;
  color: #111111;
  font-size: 48px;
  transition: color 0.2s ease;
}
.dark-mode .time-display #daysAgo {
  color: #eeeeee;
}

.save-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-top: auto;
}
.save-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.save-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.dark-mode .save-button:disabled {
  background: #555;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
  transition: color 0.2s ease;
}
.dark-mode .loading {
  color: #b0b0b0;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dark-mode .error {
  background: #4a1a1a;
  color: #ff6b6b;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dark-mode .success {
  background: #1a4a1a;
  color: #6bff6b;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  body {
    padding: 10px;
    padding-bottom: 40px;
  }
  .container {
    border-radius: 15px;
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
  .header {
    padding: 25px 15px;
  }
  .header h1 {
    font-size: 24px;
  }
  .dark-mode-toggle {
    right: 15px;
    width: 35px;
    height: 35px;
  }
  .dark-mode-toggle .sun-icon,
  .dark-mode-toggle .moon-icon {
    font-size: 16px;
  }
  .content {
    padding: 25px 15px;
    padding-bottom: 35px;
  }
}

/*# sourceMappingURL=styles.css.map */
