/* Timezone Converter Styles */

.tz-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tz-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.tz-live-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  background-color: #ef4444;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  animation: livePulse 2s ease-in-out infinite;
}

.tz-live-badge.paused {
  background-color: #94a3b8;
  animation: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Three column layout */
.tz-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.tz-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.tz-offset {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
}

.tz-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Date input */
.tz-date {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-color);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tz-date:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Analog clock */
.tz-clock {
  display: block;
}

/* Digital time */
.tz-digital {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}

.tz-digital input[type="number"] {
  width: 2.75rem;
  padding: 0.375rem 0;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1.25rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  text-align: center;
  color: var(--text-color);
  background: white;
  -moz-appearance: textfield;
  transition: border-color 0.2s;
}

.tz-digital input[type="number"]::-webkit-inner-spin-button,
.tz-digital input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tz-digital input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tz-sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 0 0.125rem;
}

.tz-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .tz-layout {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}
