/* Font & Base Style */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f7f7f7;
  /* Lighter background for a more professional look */
  color: #333;
  padding: 10px;
  transition: all 0.3s ease;
}

header {
  text-align: center;
  margin-bottom: 30px;
  background-color: #0077cc;
  /* Professional header color */
  padding: 15px;
  border-radius: 8px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2rem;
  margin: 0;
}

.selector-group,
.time-selector,
.extra-section {
  margin-bottom: 25px;
  text-align: center;
}

select,
input,
button {
  padding: 10px 15px;
  font-size: 1rem;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s;
}

button:hover {
  background-color: #0077cc;
  color: white;
  cursor: pointer;
}

/* Routine Output */
#routine-output,
#extra-subject-display {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Day/Night Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60px;
  background: #ddd;
  border-radius: 30px;
  padding: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-label .sun,
.toggle-label .moon {
  font-size: 18px;
  transition: 0.3s;
}

#theme-toggle {
  display: none;
}

/* Dark Theme */
body.dark {
  background-color: #2a2a3a;
  /* Darker background for a professional look */
  color: #eaeaea;
}

body.dark header {
  background-color: #121212;
  /* Dark header for dark mode */
  color: #00ccff;
  /* Light blue text for contrast */
}

body.dark header h1 {
  color: #00ccff;
  /* Contrast for header text */
}

body.dark select,
body.dark input,
body.dark button {
  background-color: #444444;
  color: #fff;
  border-color: #555;
}

body.dark #routine-output,
body.dark #extra-subject-display {
  background-color: #333333;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Button Style for Dark Mode */
button {
  background-color: #0077cc;
  color: white;
  border: none;
}

button:hover {
  background-color: #005fa3;
}


#dark-mode-toggle {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: #FF5733;
  /* Custom color */
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  /* Circular shape */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  transition: 0.3s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  /* Shadow effect */
}

#dark-mode-toggle:hover {
  background-color: #C70039;
  /* Custom hover color */
}

/* Dark Mode toggle active state */
#dark-mode-toggle.active {
  background-color: #33C6FF;
  /* New color for active state */
}

#timer-container {
  margin-top: 20px;
  text-align: center;
}

#timer {
  font-size: 2rem;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  margin: 5px;
  cursor: pointer;
}

/* টাইমার টপের স্টাইল */
.timer-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #0077cc;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 18px;
  z-index: 9999;
  display: none;
  /* প্রাথমিকভাবে লুকানো থাকবে */
}

/* টাইমার ডিভের স্টাইল */
.timer-container {
  background-color: #1c1c1c;
  /* গা dark রঙ */
  border-radius: 15px;
  /* কোণ গোলাকার */
  padding: 20px;
  width: 250px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* হালকা শ্যাডো */
  font-family: 'Arial', sans-serif;
}

.timer-container h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.timer-display {
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  background: linear-gradient(45deg, #4a90e2, #50e3c2);
  /* গ্র্যাডিয়েন্ট ব্যাকগ্রাউন্ড */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.timer-buttons {
  margin-top: 20px;
}

.timer-buttons button {
  background-color: #4a90e2;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.timer-buttons button:hover {
  background-color: #357abd;
  /* হোভার ইফেক্ট */
}

.timer-buttons button:active {
  background-color: #2a6a96;
  /* ক্লিক করার সময় */
}

/* মেইন লিঙ্কস */
.links-section {
  display: flex;
  gap: 1rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button-link {
  background-color: #a5d6a7;
  color: #1b5e20;
  text-decoration: none;
  padding: 0.8rem .8rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button-link:hover {
  background-color: #81c784;
}

/* ফুটার */
.app-footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #357abd;
}

