:root {
  --primary: #2563eb;
  --primary-light: #4f8cff;
  --primary-bg: #f4f6fb;
  --card-bg: #fff;
  --shadow: 0 8px 32px rgba(37,99,235,0.08);
  --radius: 22px;
  --accent: #e0e7ff;
  --danger: #e53935;
  --circle-radius: 480;
  --circle-circumference: 3016;
}

body {
  background: linear-gradient(135deg, #181a20 80%, #23242a 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #059669, #2563eb);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  z-index: 1002;
  backdrop-filter: blur(8px);
}

.home-link:hover {
  transform: scale(1.1);
}

#mainContainer {
  width: 100vw;
  max-width: 100vw;
  background: #181a20;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.timer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0 0;
}

.time-adjust-btn {
  background: rgba(30, 184, 255, 0.1);
  border: 2px solid rgba(30, 184, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1eb8ff;
  transition: all 0.2s;
  padding: 0;
}

.time-adjust-btn:hover {
  background: rgba(30, 184, 255, 0.2);
  border-color: #1eb8ff;
  transform: scale(1.1);
}

.time-adjust-btn:active {
  transform: scale(0.95);
}

.timer-display {
  font-size: 18vw;
  font-weight: bold;
  margin: 0;
  color: #1eb8ff;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.1;
  will-change: contents;
}

.timer-display.active {
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  0% { filter: drop-shadow(0 2px 8px #2563eb22); }
  100% { filter: drop-shadow(0 4px 16px #2563eb44); }
}

.date-display {
  font-size: 4vw;
  color: #f3f6fa;
  text-align: center;
  margin-bottom: 32px;
  margin-top: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.time-select {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  z-index: 1;
  margin-top: 18px;
}

select {
  padding: 10px 12px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 1.5px solid #444;
  background: #23242a;
  color: #fff;
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.04);
}

select:focus {
  border: 1.5px solid #4f8cff;
}

.preset-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  z-index: 1;
}

.preset-btns button {
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 110px;
  max-width: 110px;
  justify-content: center;
}

.btn-sozel {
  background: linear-gradient(90deg, #43ea7b 60%, #1abc9c 100%);
  color: #fff;
}

.btn-sozel:hover {
  background: linear-gradient(90deg, #1abc9c 60%, #43ea7b 100%);
  transform: translateY(-2px) scale(1.04);
}

.btn-sayisal {
  background: linear-gradient(90deg, #4f8cff 60%, #2563eb 100%);
  color: #fff;
}

.btn-sayisal:hover {
  background: linear-gradient(90deg, #2563eb 60%, #4f8cff 100%);
  transform: translateY(-2px) scale(1.04);
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.controls button {
  background: linear-gradient(90deg, #4f8cff 60%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

#startBtn {
  background: linear-gradient(90deg, #ffb300 60%, #ff6f00 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #ffb30033;
  border: 2px solid #ffb300;
  padding: 8px 18px;
  min-width: 100px;
}

#startBtn:disabled {
  background: #ffe082;
  color: #b0b7c3;
  border-color: #ffe082;
  box-shadow: none;
}

.controls button:disabled {
  background: #e0e7ff;
  color: #b0b7c3;
  cursor: not-allowed;
  box-shadow: none;
}

.controls button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
}

.controls button svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.fullscreen-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.fullscreen-btn:hover {
  background: #23242a;
}

.fullscreen-btn svg {
  width: 32px;
  height: 32px;
  fill: #bfc9db;
}

#circleTimerScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #181a20;
  z-index: 9999;
  display: none;
}

#circleTimerScreen .circle-timer-content {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
}

#circleTimerScreen .circle-timer-svg-wrap {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
}

#circleTimerScreen #circleSvg {
  width: 100vw;
  height: 100vh;
  display: block;
}

#circleTimerScreen .circle-timer-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#circleTimerScreen .circle-timer-label {
  color: #bfc9db;
  font-size: 1.5vw;
  margin-bottom: 1vw;
  text-align: center;
}

#circleTimerScreen .circle-time-adjust-btn {
  position: fixed;
  background: rgba(30, 184, 255, 0.1);
  border: 2px solid rgba(30, 184, 255, 0.3);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1eb8ff;
  transition: all 0.2s;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#circleTimerScreen .circle-adjust-left {
  left: 5vw;
}

#circleTimerScreen .circle-adjust-right {
  right: 5vw;
}

#circleTimerScreen .circle-time-adjust-btn:hover {
  background: rgba(30, 184, 255, 0.2);
  border-color: #1eb8ff;
  transform: translateY(-50%) scale(1.1);
}

#circleTimerScreen .circle-time-adjust-btn:active {
  transform: translateY(-50%) scale(0.95);
}

#circleTimerScreen .circle-timer-time {
  color: #1eb8ff;
  font-size: 8vw;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

#circleTimerScreen .circle-timer-alarm {
  color: #ff9800;
  font-size: 2vw;
  margin-top: 2vw;
  display: flex;
  align-items: center;
  gap: 1vw;
  justify-content: center;
}

#circleTimerScreen .circle-timer-content button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6vh;
  z-index: 3;
  margin-top: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: none;
  background: #23242a;
  color: #fff;
  cursor: pointer;
}

#stopAlarmBtn {
  background: #ff1744;
}

@media (max-width: 900px) {
  #circleTimerScreen .circle-timer-label { font-size: 3vw; }
  #circleTimerScreen .circle-timer-time { font-size: 12vw; }
  #circleTimerScreen .circle-time-adjust-btn { width: 50px; height: 50px; }
  #circleTimerScreen .circle-adjust-left { left: 2vw; }
  #circleTimerScreen .circle-adjust-right { right: 2vw; }
  #circleTimerScreen .circle-time-adjust-btn svg { width: 24px; height: 24px; }
  #circleTimerScreen .circle-timer-alarm { font-size: 4vw; }
  #circleTimerScreen .circle-timer-content > button:not(.circle-time-adjust-btn) { bottom: 2vh; }
}

@media (max-width: 600px) {
  .timer-display { font-size: 4.5rem; }
  .timer-wrapper { gap: 10px; margin-top: 6px; }
  .time-adjust-btn { width: 40px; height: 40px; }
  .time-adjust-btn svg { width: 20px; height: 20px; }
  .date-display { font-size: 3rem; }
  .time-select { gap: 16px; margin-bottom: 24px; }
  .controls button, .preset-btns button { padding: 14px 18px; font-size: 1.08rem; }
  select { font-size: 1.2rem; padding: 14px 10px; }
  #mainContainer {
    justify-content: center;
    min-height: 100vh;
  }
}
