.clock-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.clock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.clock-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock-panel {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--primary-green);
  padding: 3rem;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 0 30px var(--dark-green), inset 0 0 30px rgba(0, 51, 0, 0.3);
}

.time-display-digital {
  text-align: center;
  font-size: 3rem;
  color: var(--glow-green);
  text-shadow: 0 0 20px var(--glow-green);
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
}

.binary-clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  margin: 3rem 0;
}

.clock-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.column-label {
  font-size: 1.2rem;
  color: var(--primary-green);
  text-shadow: 0 0 5px var(--glow-green);
  margin-bottom: 0.5rem;
}

.led-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.led {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-green);
  background: rgba(0, 51, 0, 0.3);
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.led::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(0, 51, 0, 0.5);
}

.led.on {
  background: var(--glow-green);
  box-shadow: 0 0 20px var(--glow-green), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.led.on::before {
  background: rgba(255, 255, 255, 0.8);
}

.clock-separator {
  font-size: 3rem;
  color: var(--primary-green);
  text-shadow: 0 0 10px var(--glow-green);
  align-self: center;
  margin-top: 2rem;
}

.format-display {
  margin: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.format-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  background: rgba(0, 51, 0, 0.2);
  border: 1px solid var(--primary-green);
}

.format-label {
  color: var(--primary-green);
  font-size: 1.2rem;
}

.format-value {
  color: var(--glow-green);
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--glow-green);
  font-family: monospace;
}

.controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.clock-btn {
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 1rem 2rem;
  cursor: pointer;
  text-shadow: 0 0 10px var(--glow-green);
  transition: all 0.3s ease;
}

.clock-btn:hover {
  background: var(--dark-green);
  box-shadow: 0 0 20px var(--glow-green);
}

@media (max-width: 768px) {
  .clock-container {
    padding: 1rem;
  }

  .clock-panel {
    padding: 1.5rem;
  }

  .binary-clock {
    gap: 0.5rem;
  }

  .led {
    width: 30px;
    height: 30px;
  }

  .time-display-digital {
    font-size: 2rem;
  }

  .format-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}
