/* css/style.css */
:root {
  --bg-color: #0f172a;      /* Slate 900 */
  --surface-color: #1e293b; /* Slate 800 */
  --primary-color: #38bdf8; /* Sky 400 */
  --text-primary: #f1f5f9;  /* Slate 100 */
  --text-secondary: #94a3b8;/* Slate 400 */
  --error-color: #ef4444;   /* Red 500 */
  --radius: 12px;
  --spacing: 1rem;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing);
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  color: var(--primary-color);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition, all 0.2s ease);
  margin-bottom: -0.5rem;
  width: fit-content;
}

.back-link:hover {
  color: var(--primary-color);
  transform: translateX(-4px);
}

.back-link svg {
  transition: transform 0.2s ease;
}

.card {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.current-time-display {
  text-align: center;
}

.big-time {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.date-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

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

label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input {
  background-color: var(--bg-color);
  border: 1px solid #334155;
  color: var(--text-primary);
  padding: 0.75rem;
  padding-right: 4.5rem; /* Space for NOW button */
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.now-btn {
  position: absolute;
  right: 6px;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  flex: none;
}

.now-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

.result-box {
  background-color: rgba(56, 189, 248, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 0.5rem;
}

.result-box.visible {
  display: flex;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.result-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  color: var(--text-primary);
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 1rem;
}

button {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  flex: 1;
}

button:hover {
  opacity: 0.9;
}

button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Icon Buttons */
.icon-btn {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid transparent;
  padding: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.icon-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  opacity: 1;
}

.icon-btn:active {
  background: rgba(56, 189, 248, 0.2);
}

.error-msg {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}
