/* © 2026 ToolsFlash.com — Time Zone Converter styles. All rights reserved. */

.tz-dt-wrap { display: flex; gap: 8px; }
.tz-dt-wrap input { flex: 1; min-width: 0; }
.tz-now-btn {
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  color: var(--primary, #4f46e5);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.tz-now-btn:hover { border-color: var(--primary, #4f46e5); background: rgba(79, 70, 229, 0.06); }

.tz-hint { font-size: 0.78rem; color: var(--text-muted, #64748b); margin: 6px 0 0; }
.tz-hint span { font-weight: 600; }

.tz-zone { font-size: 0.72rem; color: var(--text-muted, #64748b); font-weight: 400; }

.tz-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary, #4f46e5);
  white-space: nowrap;
}
.tz-badge-src { background: rgba(79, 70, 229, 0.14); }

.tz-results { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tz-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
}
.tz-row-src { border-color: var(--primary, #4f46e5); box-shadow: 0 0 0 1px var(--primary, #4f46e5) inset; }
.tz-row-city { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tz-row-city strong { font-size: 0.92rem; color: var(--text, #0f172a); }
.tz-row-city .tz-zone { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-row-time { display: flex; flex-direction: column; gap: 2px; }
.tz-time { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.2px; color: var(--primary-dark, #4338ca); }
.tz-date { font-size: 0.74rem; color: var(--text-muted, #64748b); }
.tz-row-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tz-diff { font-size: 0.72rem; color: var(--text-muted, #64748b); white-space: nowrap; }
[data-theme="dark"] .tz-row-city strong { color: var(--text, #e2e8f0); }
[data-theme="dark"] .tz-time { color: #a5b4fc; }

.tz-day {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.tz-day-next { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.tz-day-prev { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
[data-theme="dark"] .tz-day-next { background: rgba(250, 204, 21, 0.18); color: #fde047; }
[data-theme="dark"] .tz-day-prev { background: rgba(96, 165, 250, 0.18); color: #93c5fd; }

.tz-remove {
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.15s, color 0.15s;
}
.tz-remove:hover { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.tz-empty { color: var(--text-muted, #64748b); font-size: 0.9rem; margin: 6px 0; }

.tz-add-row { display: flex; gap: 8px; margin-top: 16px; }
.tz-add-row select { flex: 1; min-width: 0; }
.tz-add-btn {
  border: none;
  background: var(--primary, #4f46e5);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.tz-add-btn:hover { opacity: 0.9; }

.notice { display: none; margin-top: 12px; }

/* Dark mode */
[data-theme="dark"] .tz-now-btn { background: var(--bg-card, #1e293b); border-color: var(--border, #334155); color: #a5b4fc; }
[data-theme="dark"] .tz-now-btn:hover { background: rgba(129, 140, 248, 0.12); border-color: #6366f1; }
[data-theme="dark"] .tz-badge { background: rgba(129, 140, 248, 0.18); color: #a5b4fc; }

/* Responsive */
@media (max-width: 620px) {
  .tz-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .tz-row-city { grid-column: 1; }
  .tz-row-time { grid-column: 1; grid-row: 2; }
  .tz-row-meta { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; }
  .tz-remove { grid-column: 2; grid-row: 2; justify-self: end; }
  .tz-dt-wrap { flex-wrap: wrap; }
  .tz-now-btn { padding: 8px 14px; }
}
