:root {
    --bg-color: #E8E8E8;
    --text-muted: #a0a0aa;
  }

body {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.icon-text-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.text-label {
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.clock-local {
    text-align: center;
    font-size: 15rem;
    font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: tabular-nums;
}

.local-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 10px;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#local-date {
  color: #000000;
  font-size: 28px;
  font-weight: bold;
}

#text-current {
  color: #a0a0aa;
  font-weight: bold
}

.toggle-button {
  width: 60px;
  padding: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #a0a0aa;
  background-color: #E8E8E8;
  border: 2px solid #a0a0aa;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toggle-button:hover {
  background-color: #a0a0aa; 
  color: #ffffff;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-timezone {
  padding: 8px;
  font-size: 14px;
  border: 2px solid #a0a0aa;
  border-radius: 20px;
  background-color: var(--bg-color);
  width: 380px;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-timezone:focus {
  outline: none;
}

.selector-container {
  display: flex;
  justify-content: center;
  padding: 28px;
}

.searchable-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-results-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--bg-color);
  border: 1px solid #2a2a35;
  border-radius: 8px;
  max-height: 250px;
  overflow-y: auto; 
  z-index: 10; 
  display: none; 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.search-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #141418;
  font-size: 0.95rem;
  text-align: left;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #a1a1a1;
    color: #ffffff;
}

.grid-container {
  display: grid;
  padding: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.clock-card {
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #a0a0aa;
  transition: transform 0.2s ease;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-variant-numeric: tabular-nums;
}

.clock-card:hover {
  transform: translateY(-4px);
}

.clock-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.clock-card .clock {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.clock-card {
  position: relative;
  padding: 2rem 1.5rem 1.5rem 1.5rem; 
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.delete-btn:hover {
  color: #ef4444;
  background: transparent; 
}

.timezone-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.offset-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bolder;
  border-radius: 6px;
  font-family: "Space Grotesk", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.offset-ahead {
  color: #10b981; 
}

.offset-behind {
  color: #ff9500;
}

.offset-same {
  color: var(--text-muted);
}

.section-divider {
  border: 0;
  height: 1.5px;
  background: #a0a0aa;
  /* margin: 1rem 0; */
}

.search-item.search-item-active {
  background-color: #a1a1a1;
  color: #ffffff;
}