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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f3ff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
  max-width: 600px;
  width: 100%;
}

h1 {
  color: #7c3aed;
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 500;
}

.controls {
  margin-bottom: 40px;
  text-align: center;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

#datetime-picker {
  width: 100%;
  padding: 14px;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  font-size: 16px;
  background-color: #faf5ff;
  transition: all 0.2s;
  text-align: center;
}

#datetime-picker:focus {
  outline: none;
  border-color: #c4b5fd;
  background-color: white;
}

.btn {
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #8b5cf6;
  color: white;
}

.btn:hover:not(:disabled) {
  background-color: #7c3aed;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #faf5ff;
  border-radius: 10px;
  border: 1px solid #e9d5ff;
  min-width: 100px;
}

.value {
  font-size: 48px;
  font-weight: 600;
  color: #7c3aed;
  font-family: "Courier New", monospace;
  line-height: 1;
  margin-bottom: 8px;
}

.label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .timer {
    gap: 10px;
  }

  .field {
    min-width: 70px;
    padding: 15px 10px;
  }

  .value {
    font-size: 32px;
  }

  .label {
    font-size: 10px;
  }
}

/* Стили для flatpickr */
.flatpickr-calendar {
  background: white;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.flatpickr-day.selected {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.flatpickr-day:hover {
  background: #f3e8ff;
  border-color: #e9d5ff;
}

/* Стили для iziToast */
.iziToast {
  border-radius: 8px !important;
}

.iziToast-color-green {
  background: #8b5cf6 !important;
}

.iziToast-color-red {
  background: #ec4899 !important;
}

.iziToast-color-blue {
  background: #7c3aed !important;
}
