/* Prevent scrolling and ensure full height */
html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Compact inline mode for timenow.html */
body.inline-mode .main-container {
  margin: 0;
  width: auto;
  display: block;
}

body.inline-mode #timeNowWidget {
  background: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: none;
  display: flex;
  align-items: baseline;
}
body.inline-mode #timeNowWidget .widget-actions {
  display: none;
}
body.inline-mode #timeNowWidget .location {
  position: static;
  padding-top: 0;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
body.inline-mode #timeNowWidget h1 {
  display: inline;
  font-size: 2rem;
  margin: 0;
}
body {
  overflow-y: auto;
}

/* Global Styles */
body {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  background-size: cover;
  background-position: center;
}



/* Navigation Bar */
#mainNav {
  margin: 20px;
  margin-bottom: 0;
  background-color: #0d1b1e;
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
#mainNav .nav-item {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}
#mainNav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0;
}
#mainNav .nav-right {
  margin-left: auto;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
#mainNav .nav-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.4);
}
#mainNav img {
  height: 40px;
}

#mainNav .settings-icon svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background-color: #0d1b1e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  min-width: 120px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown.active .dropdown-content {
  display: block;
}

/* Global Toggle Button */
.global-toggle {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #0d1b1e;
  color: white;
  border-radius: 12px;
  font-weight: 600;
}

/* Clock format previews */
#timeFormatGrid {
  grid-template-columns: repeat(3, 1fr);
}

#hoursToggleBtn {
  padding: 0;
  width: 100%;
  background: none;
}
#hoursToggleBtn img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: filter 0.2s;
}
#hoursToggleBtn.off img {
  filter: grayscale(100%);
}

/* Specific styling for the display and schedule buttons */
#scheduleButton,
#displayButton {
  color: #2c9f9b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0;
  cursor: pointer;
}

/* Main container – some top and bottom margin */
.main-container {
  width: 90vw;
  margin: 30px auto 80px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center layouts 2 & 3 vertically within the page */
body.center-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.center-layout .main-container {
  margin-top: auto;
  margin-bottom: auto;
}

/* Widget styles */
.widget {
  background: #fafafa; /* slightly off-white so widgets stand out */
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 1.2rem;
  text-align: center;
  box-sizing: border-box;
  width: 98%;
  max-width: 750px;
  position: relative;
  overflow: hidden;
}

/* Allow grid widgets to fill the entire cell */
.grid-item.widget,
.add-widget {
  width: 100%;
  max-width: none;
}

/* Slightly wider widgets in fullscreen mode */
:fullscreen .widget {
  max-width: 850px;
}

/* Transparent blur mode for backgrounds 3–6 */
.blur-widget {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* Additional class to force text white on blurred widgets (for background 5) */
.blur-dark {
  color: #fff !important;
}
.blur-dark * {
  color: #fff !important;
}

/* Dark mode for background2 */
.dark-widget {
  background: rgba(60, 60, 60, 0.9) !important; /* lighter shade for dark mode */
  box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
  color: #fff !important;
}
.dark-widget * {
  color: #fff !important;
}

/* Location element for main & grid widgets */
.location {
  position: relative;
  padding-top: 40px; /* room for flag */
  font-size: 1.8rem;
  color: #555;
}

/* Flag container for main & grid widgets */
.flag-container {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px;
}
.flag-container img {
  width: 48px;
  height: auto;
}
body.no-flags .flag-container {
  display: none;
}

body.circle-flags .flag-container img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Title container for main & grid widgets */
.title-container {
  text-align: center;
  width: 100%;
}

/* Main widget time */
.main-widget h1, #mainTimeInput {
  font-size: 4rem;
  margin: 0.5rem 0 1rem;
  color: #333;
  border: none;
  background: transparent;
  text-align: center;
}

/* Widget actions */
.widget-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons general */
button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  color: white;
}

/* Circle Buttons */
.circle-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Globe Button - styled like the trash button */
.globe-button {
  background: none;
  border: none;
  padding: 0;
  color: #2c9f9b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.globe-button svg {
  width: 32px;
  height: 32px;
}

.globe-button:hover {
  color: #555;
}

/* Grid Container: EXACT 3x2 layout (three widgets per row) */
.grid-container {
  width: 100%;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  grid-template-rows: repeat(2, auto);   /* exactly 2 rows */
  justify-items: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
  grid-auto-flow: row;
}

.compare-layout {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: none;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* Grid item styles */
.grid-item {
  background: #fafafa; /* match main widgets */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
  min-height: 200px;
}

/* Grid item time display */
.grid-item h2 {
  font-size: 3.5rem;
  margin: 0.5rem 0;
  color: #333;
}

/* Time difference text */
.time-diff {
  font-size: 1.1rem;
  color: #888;
  margin-top: 0.5rem;
}

/* Add Widget Placeholder Styling */
.add-widget {
  border: 2px dashed #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 3rem;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Meeting Pop-up Styling */
.meeting-popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 50;
}
.meeting-popup button {
  margin: 0.5rem;
}


/* Scheduling Container */
.scheduling-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Updated Scheduling Input Styling */
.scheduling-input {
  box-sizing: border-box;
  width: 6rem;
  padding: 0.75rem;
  font-size: 3.5rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  text-align: center;
  color: #333;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Updated Time Separator Styling */
.time-separator {
  font-size: 3.5rem;
  color: #333;
}

/* AM/PM Select Styling */
.ampm-select {
  font-size: 3.5rem;
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Settings Modal Specific Styling */
.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .background-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 350px) {
  .background-grid {
    grid-template-columns: 1fr;
  }
}

.background-grid .bg-preview {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: border 0.2s;
}
.background-grid .layout-preview {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: border 0.2s;
}
.background-grid .flag-preview {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: border 0.2s;
}
.background-grid .time-preview {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: border 0.2s;
}
.background-grid .bg-preview:hover {
  border: 2px solid #007BFF;
}
.background-grid .layout-preview:hover {
  border: 2px solid #007BFF;
}
.background-grid .flag-preview:hover {
  border: 2px solid #007BFF;
}

/* Highlight the currently selected option */
.background-grid img.selected {
  border: 2px solid #007BFF;
}

/* Updated Add Widget Button (cssbuttons-io style) */
.cssbuttons-io-button {
  background: #007BFF;
  color: white;
  font-family: inherit;
  padding: 0.3em 0.35em 0.3em 1em;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0.8em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.2em -0.5em #0056b3;
  overflow: hidden;
  position: relative;
  height: 2.4em;
  padding-right: 2.8em;
  cursor: pointer;
  margin-top: 1rem;
}
.cssbuttons-io-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}
.cssbuttons-io-button .icon {
  background: white;
  margin-left: 0.5em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2em;
  width: 2em;
  border-radius: 0.6em;
  box-shadow: 0.1em 0.1em 0.5em 0.2em #0056b3;
  right: 0.3em;
  transition: all 0.3s;
}
.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}
.cssbuttons-io-button .icon svg {
  width: 1em;
  transition: transform 0.3s;
  color: #0056b3;
}
.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}
.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}
.modal-content h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
}

#versionContent {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}
#versionContent::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.tab-container {
  display: flex;
  margin-bottom: 0.5rem;
}

.tab {
  flex: 1;
  padding: 0.5rem;
  cursor: pointer;
  background: #f0f0f0;
  border: none;
  border-radius: 4px 4px 0 0;
}

.tab.active {
  background: #007BFF;
  color: #fff;
}
/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
}
.close:hover {
  color: #555;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-container .close {
  position: static;
  font-size: 1.5rem;
  margin-left: auto;
}

.clear-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: #f0f0f0;
  border-radius: 4px;
}
.clear-btn:hover {
  background: #e0e0e0;
}

/* Settings modal enhancements */
#settingsModal .modal-content {
  background-color: #f9f9f9;
  max-width: 500px;
}

#settingsModal h2 {
  margin-top: 0;
  text-align: center;
}


.settings-section {
  margin-bottom: 1rem;
}

.settings-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.settings-section button {
  width: 100%;
}
.settings-section select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

#countrySearch {
  box-sizing: border-box;
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}
#countrySearch:focus {
  border-color: #007BFF;
}

#countryList {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
}

#versionList {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#helpList {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.version-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.version-stats .stat {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.version-stats .stat span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #007BFF;
}

.version-entry {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.version-date {
  font-weight: 600;
  min-width: 7rem;
  text-align: center;
}

.version-day {
  font-size: 2rem;
}

.version-month {
  font-size: 0.85rem;
}

.version-details {
  flex: 1;
  line-height: 1.4;
}

.help-entry {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.help-entry img {
  max-width: 80px;
  border-radius: 8px;
}

.help-details {
  flex: 1;
  line-height: 1.4;
}

.country-item {
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s ease;
}
.country-item:hover {
  background-color: #f9f9f9;
}
.country-item img {
  margin-right: 10px;
  width: 32px;
  height: auto;
}
body.no-flags .country-item img {
  display: none;
}

body.circle-flags .country-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Scheduling Banner */
#schedulingBanner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffc107;
  color: #333;
  padding: 0.7rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 25;
  font-size: 1rem;
}
#leaveSchedulingBtn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  margin-left: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Additional Close Button Styling */
.close {
  font-size: 28px;
  color: #999;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}
.close:hover {
  color: #555;
}

/* Fullscreen mode styling */
:fullscreen .main-container {
  box-sizing: border-box;
  width: 100vw;
  /* Only leave minimal space at the very edges */
  margin: 30px 0;
}
:fullscreen body.center-layout .main-container {
  margin: auto;
}
:fullscreen #mainWidgetContainer {
  margin-top: 2rem;
}
:fullscreen body {
  overflow: hidden;
}
:fullscreen #scheduleButton,
:fullscreen #addWidget,
:fullscreen #schedulingBanner,
:fullscreen #mainNav {
  display: none;
}
:fullscreen .globe-button,
:fullscreen .trash-button {
  opacity: 0;
  pointer-events: none;
}
:fullscreen .grid-container {
  /* Display mode uses a 3×2 layout */
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  /* Extend nearly edge to edge */
  width: calc(100vw - 2rem);
  margin: 0 1rem;
  padding: 0;
}

/* Increase side margins for times in subwidgets while in display mode */
:fullscreen .grid-item h2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Spacing for subwidgets in display mode */
:fullscreen .grid-item {
  /* Widgets align directly against the container edges */
  margin-right: 0;
  margin-left: 0;
}

/* Trash Button */
.trash-button {
  background: none;
  border: none;
  padding: 0;
  color: #2c9f9b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.trash-button svg {
  width: 32px;
  height: 32px;
}
.trash-button:hover {
  color: #555;
}
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 4em;
  background-color: rgba(0, 0, 0, 0.253);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 25%;
  left: 110%;
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(0, 0, 0, 0.253) transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Responsive scaling for large screens like TVs */
@media (min-width: 1920px) {
  html {
    font-size: 20px;
  }
  .widget {
    max-width: 900px;
  }
  .grid-item.widget,
  .add-widget {
    max-width: none;
  }
  .grid-item {
    min-height: 240px;
  }
  .main-widget h1,
  #mainTimeInput {
    font-size: 5.5rem;
  }
  .grid-item h2 {
    font-size: 5rem;
  }
  :fullscreen .widget {
    max-width: 1000px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 24px;
  }
  .widget {
    max-width: 1100px;
  }
  .grid-item.widget,
  .add-widget {
    max-width: none;
  }
  .grid-item {
    min-height: 280px;
  }
  .main-widget h1,
  #mainTimeInput {
    font-size: 5rem;
  }
  .grid-item h2 {
    font-size: 4.5rem;
  }
  :fullscreen .widget {
    max-width: 1200px;
  }
}

/* ----- Timer Page Styles ----- */
.timer-page .main-container {
  justify-content: center;
  min-height: calc(100vh - 120px);
}

#addTimerButton {
  background: none;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 2rem 3rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.time-inputs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.time-inputs input {
  width: 3ch;
  padding: 0.5rem;
  font-size: 1rem;
  text-align: right;
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.preset {
  padding: 0.4rem 0.75rem;
  border: none;
  background: #0d1b1e;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}
.preset:hover {
  background: #2c9f9b;
}

/* Spacing adjustments for add timer modal */
#addTimerModal h2 {
  margin-bottom: 1rem;
}

#createTimer {
  margin-top: 1rem;
}

/* Styled text input for timer title */
.input-container {
  position: relative;
  margin: 1rem 0;
}

.input-field {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  background-color: transparent;
}

.input-label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1rem;
  color: rgba(204, 204, 204, 0);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #007bff;
  transition: all 0.3s ease;
}

.input-field:focus + .input-label {
  top: -20px;
  font-size: 0.8rem;
  color: #007bff;
}

.input-field:focus + .input-label + .input-highlight {
  width: 100%;
}

#timerList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.timer-widget {
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  width: 100%;
  max-width: none;
}

.timer-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timer-countdown {
  font-size: 2.5rem;
  margin: 0.25rem 0;
}

.primary-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #0d1b1e;
  color: white;
  border-radius: 12px;
  font-weight: 600;
}

.small-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

.primary-btn:hover {
  background-color: #2c9f9b;
}
