.header-nav {
  background-color: var(--surface-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(to right, #f39c12, #87ceeb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-center-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info-logo {
  font-size: 0.9rem;
  color: #a0a0a0;
  white-space: nowrap;
}

#round-timer-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1a1a1a;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #333;
  position: relative;
}

#round-name {
  font-weight: 600;
  color: var(--primary-color);
}

#round-countdown {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: #e0e0e0;
}

#round-info-wrapper {
  position: relative;
}

.round-info-icon {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  font-family: serif;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-info-icon.active {
  transform: rotate(180deg);
}

.round-schedule-dropdown {
  position: absolute;
  top: 140%;
  right: 0;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  width: 320px;
  z-index: 190 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
}

.round-schedule-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.round-schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #2a2a2a;
  color: #ccc;
}
.round-schedule-item:last-child {
  border-bottom: none;
}

.round-schedule-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-icons {
  display: flex;
  gap: 0.5rem;
}

.nav-icon {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-icon:hover {
  color: var(--primary-color);
}

.nav-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.tooltip {
  display: none;
}

.nav-icon:hover .tooltip,
.nav-icon:focus .tooltip {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background-color: #2a2a2a41;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-top: 8px;
  z-index: 10;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.logout-modal-content {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--primary-color);
  text-align: center;
  max-width: 500px;
  width: 90%;
  color: #e5e5e5;
}

.logout-modal-content h2 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.logout-modal-content p {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.logout-modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.logout-modal-actions .modal-btn {
  padding: 0.7em 1.5em;
  border-radius: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.logout-modal-actions .modal-btn.confirm {
  background-color: var(--primary-color);
  color: #000;
}

.logout-modal-actions .modal-btn.confirm:hover {
  box-shadow: 0 0 25px var(--primary-color);
  filter: brightness(1.1);
}

.logout-modal-actions .modal-btn.cancel {
  background-color: transparent;
  color: #b0b0b0;
  border: 1px solid #555;
}

.logout-modal-actions .modal-btn.cancel:hover {
  background-color: #3a3a3e;
  color: #fff;
}

@media (max-width: 768px) {
  .header-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .logo {
    font-size: 1rem;
    order: 1;
  }
  .nav-icons {
    order: 2;
    gap: 0.2rem;
  }
  .header-center-content {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 0.75rem;
    gap: 0.5rem;
  }
  .user-info-logo {
    font-size: 0.8rem;
  }
  #round-timer-container {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  .nav-icon svg {
    width: 20px;
    height: 20px;
  }
  .logout-modal-content h2 {
    font-size: 1.1rem;
  }
  .logout-modal-content p {
    font-size: 0.9rem;
  }
  .round-schedule-dropdown {
    position: fixed;
    top: 140px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    width: 90%;
  }

  .round-schedule-dropdown.active {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
