@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
  --bg-color: #0f172a;
  --container-bg: rgba(30, 41, 59, 0.85); 
  --text-color: #f8fafc;
  --accent: #38bdf8;
  --btn-text: #ffffff;
}

.theme-light {
  --bg-color: #e2e8f0;
  --container-bg: rgba(255, 255, 255, 0.85);
  --text-color: #1e293b;
  --accent: #2563eb;
  --btn-text: #ffffff;
}

.theme-oled {
  --bg-color: #000000;
  --container-bg: rgba(0, 0, 0, 0.95);
  --text-color: #ffffff;
  --accent: #ff003c;
  border: 1px solid #333;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('wallpaper.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
  background: var(--container-bg);
  padding: 40px 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  text-align: center;
  width: 90%; 
  max-width: 950px;
  backdrop-filter: blur(12px);
  transition: all 0.5s ease;
}

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 15px;}
.theme-bar { display: flex; gap: 10px; }

.theme-btn { 
  padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 2px solid var(--accent); background: transparent; 
  color: var(--text-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-btn:hover { background: var(--accent); color: var(--bg-color); transform: translateY(-2px); }

.bg-input-group { display: flex; gap: 10px; }
.bg-input-group input { width: 180px; padding: 10px; font-size: 0.85rem; border-radius: 12px;}

/* Analytics & Quotes Styles */
.stats-banner {
  font-size: 0.95rem; font-weight: 600; background: rgba(56, 189, 248, 0.1);
  color: var(--accent); padding: 8px 15px; border-radius: 10px; display: inline-block;
  margin-bottom: 10px; border: 1px solid rgba(56, 189, 248, 0.3);
}

.quote-banner {
  font-size: 0.9rem; font-style: italic; opacity: 0.8; min-height: 22px;
  margin-bottom: 10px; color: var(--text-color);
}

#timer { 
  font-size: 6.5rem; font-weight: 800; margin: 5px 0 15px 0; color: var(--accent); 
  letter-spacing: 2px; transition: color 0.5s ease;
}

#statusMessage {
  font-size: 1.05rem; font-weight: 600; color: #ef4444; 
  min-height: 24px; margin-bottom: 20px; transition: opacity 0.3s ease;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }

button {
  border: none; padding: 15px; border-radius: 14px; cursor: pointer; 
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--btn-text); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:hover:not(:disabled) { transform: scale(1.03) translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-study { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.btn-game { background: linear-gradient(135deg, #ec4899, #db2777); }
.btn-dev { background: linear-gradient(135deg, #10b981, #059669); }
.btn-custom-set { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-secondary { background: #475569; color: white; }
.btn-stop { background: linear-gradient(135deg, #ef4444, #dc2626) !important; color: white; }

/* Ambient Sounds Layout */
.ambient-section { margin: 20px 0; }
.ambient-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; opacity: 0.9; }
.ambient-btns { display: flex; justify-content: center; gap: 10px; }
.btn-ambient { background: #334155; font-size: 0.85rem; padding: 10px 14px; border-radius: 10px; }
.btn-ambient.playing { background: #0284c7; border: 1px solid #38bdf8; }

.input-group { display: flex; gap: 15px; justify-content: center; margin: 20px 0; }
input { 
  padding: 10px 16px; border-radius: 12px; border: 2px solid #334155; 
  background: var(--bg-color); color: var(--text-color); width: 120px; text-align: center; 
  transition: all 0.3s ease;
}
input:focus { outline: none; border-color: var(--accent); }

.controls { display: flex; gap: 20px; justify-content: center; margin-top: 15px;}

.music-section { 
  margin-top: 30px; border-top: 2px solid rgba(148, 163, 184, 0.2); padding-top: 20px; 
}
iframe { 
  border-radius: 16px; margin-top: 15px; width: 100%; height: 152px; border: none; 
  opacity: 0; display: none; transition: opacity 0.5s ease;
}
.active-iframe { display: block; opacity: 1; }