/* Global Timezone Helper Styles */
.time-display,
.date-display,
.datetime-display,
.timestamp,
[data-time],
[data-date],
[data-datetime] {
  transition: color 0.2s ease;
}

/* Timezone indicator */
.timezone-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dark .timezone-indicator {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

/* Time elements with hover effect */
.time-display:hover,
.date-display:hover,
.datetime-display:hover {
  color: #3b82f6;
  cursor: help;
}

.dark .time-display:hover,
.dark .date-display:hover,
.dark .datetime-display:hover {
  color: #60a5fa;
}

/* Loading state for time updates */
.time-updating {
  opacity: 0.6;
  position: relative;
}

.time-updating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #3b82f6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive time displays */
@media (max-width: 640px) {
  .timezone-indicator {
    font-size: 0.625rem;
    padding: 0.0625rem 0.375rem;
  }
  
  .time-display,
  .date-display,
  .datetime-display {
    font-size: 0.875rem;
  }
}

/* Compact time display for tables */
.time-compact {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Timezone selector integration */
.timezone-selector {
  position: relative;
}

.timezone-selector::before {
  content: '🌍';
  margin-right: 0.25rem;
}

/* Timezone badge */
.timezone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .timezone-badge {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}
