:root {
  --focus: #ff5959;
  --short: #46c06a;
  --long: #2a8ff7;
  --bg: #1a1a2e;
  --card: #2c394b;
  --text: #fff;
  --muted: #aaa;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: 0.3s;
}
img {
  display: block;
  margin: 0 auto 20px; /* centers it horizontally and adds space below */
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* LAYOUT */
.pomodoro-app {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* TIMER */
.timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(var(--focus) 0deg, transparent 0deg),
              radial-gradient(circle at 50% 50%, #2b2b38 0%, #151822 65%);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.timer-text {
  font-size: 2.5rem;
  font-weight: bold;
}
.mode-label {
  font-size: 1rem;
  margin-top: 5px;
  color: var(--muted);
}

/* CONTROLS */
.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn.main {
  background: var(--focus);
  color: white;
}
#skip-btn {
  background: rgba(255,255,255,0.15); /* Dark mode background */
  color: #fff;
}
#skip-btn:hover { background: rgba(255,255,255,0.25); }
.hidden { display: none; }

/* NEXT SECTION */
.next {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* SETTINGS PANEL */
.settings-panel {
  display: none;
  flex-direction: column;
  background: var(--card);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  width: 280px;
  color: var(--text);
}
.settings-panel.active { display: flex; }

.settings-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.settings-panel hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0 16px;
}

.setting-row { margin-bottom: 20px; }
.setting-row label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.subtext {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -4px 0 6px;
}

.adjust {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adj-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.adj-btn:hover { background: rgba(255,255,255,0.25); }
input[type="number"] {
  width: 60px;
  text-align: center;
  border: none;
  border-radius: 6px;
  padding: 5px;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: var(--text);
}
.unit {
  font-size: 0.9rem;
  color: var(--muted);
}
select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 500;
}

/* FIX: Style the options within the dropdown */
select option {
    /* Set the background to a dark color (like your card background) */
    background: var(--card, #2c394b); 
    /* Set the text color to white */
    color: var(--text, #fff); 
}

/* SETTINGS ICON */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none; /* no background */
  border: none; /* remove border */
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}
.settings-btn:hover {
  transform: rotate(90deg);
  color: var(--focus);
}


/* LIGHT THEME */
.light-theme {
  --bg: #f8f9fb;
  --card: #ffffff;
  --text: #111;
  --muted: #444;
}
.light-theme .timer-circle {
  background: conic-gradient(var(--focus) 0deg, transparent 0deg),
              radial-gradient(circle at 50% 50%, #ffffff 0%, #f2f2f2 65%);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,0.1);
}

/* FIX 1: Make Skip button visible in light mode */
.light-theme #skip-btn {
  background: #ccc; /* Use a medium gray for visibility */
  color: #111;
}
.light-theme #skip-btn:hover { 
  background: #bbb; 
}

/* FIX 2: Ensure Inputs/Buttons have a clear background/border in light mode */
.light-theme .btn, 
.light-theme input[type="number"], 
.light-theme select {
  /* Use solid white background and a subtle border to clearly define the input area */
  background: #fff; 
  border: 1px solid rgba(0,0,0,0.2);
  color: #111;
}
.light-theme .adj-btn { 
  background: #f0f0f0; /* Use a light gray for the adjustment buttons */
  color: #111; 
  border: 1px solid rgba(0,0,0,0.1);
}

.light-theme .settings-panel {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.light-theme .settings-btn {
  background: #fff;
  border: 2px solid rgba(0,0,0,0.15);
  color: #111;
}
.light-theme .settings-panel hr {
  border-top: 1px solid rgba(0,0,0,0.1);
}
