* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-r: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --accent: #667eea;
  --accent-deep: #764ba2;
  --bg: #f0eeff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(255, 255, 255, 0.6);
  --surface-3: rgba(102, 126, 234, 0.07);
  --border: rgba(102, 126, 234, 0.18);
  --text-1: #2d1f5e;
  --text-2: #5a4a8a;
  --text-3: #9585c0;
  --shadow:
    0 24px 64px rgba(102, 126, 234, 0.22), 0 2px 8px rgba(118, 75, 162, 0.1);
  --glow: 0 0 24px rgba(102, 126, 234, 0.25);
  --radius: 18px;
  --radius-sm: 11px;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  animation: slideUp 0.5s ease-out;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.header-text h1 {
  color: #2d3748;
  font-size: 1.65rem;
}

.header-text .subtitle {
  color: #718096;
  font-size: 14px;
}
.preset-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.preset-btn {
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.preset-btn:hover {
  background: rgba(102, 126, 234, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.15);
}

.preset-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.preset-time {
  display: block;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.preset-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.custom-section {
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 10px;
}

.custom-title {
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
}

.time-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.input-group {
  text-align: center;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: semibold;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 8px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
}

.options {
  margin-bottom: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 5px;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.option-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}
.opt-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.1);
}

.opt-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d3748;
  font-size: 15px;
}

.toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #cbd5e0;
  border-radius: 13px;
  transition: background 0.3s;
}

.toggle.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle.active::after {
  transform: translateX(24px);
}

.start-btn {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.start-btn:active {
  transform: translateY(0);
}

.start-btn.active {
  background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}
.tip {
  margin-bottom: 3px;
  color: #718096;
  margin: 8px 0px;
  text-align: center;
}
.status {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: none;
}

.status.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.status-text {
  color: #2d3748;
  font-size: 14px;
  margin-bottom: 6px;
  text-align: center;
}

.countdown {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.notification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.notification-modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 28px;
  color: #2d3748;
  margin-bottom: 15px;
}

.modal-message {
  font-size: 16px;
  color: #718096;
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-btn:hover {
  transform: translateY(-2px);
}
