/* =========================================================
🌍 PREMIUM TIMEZONE CONVERTER
International • Professional • SaaS-grade UI
WHITE THEME – Header / Navbar Safe
========================================================= */

/* ---------- Root helpers ---------- */
:root {
  --card-bg: #ffffff;
  --card-bg-dark: #1e1e1e;

  --accent: #111111;
  --accent-dark: #000000;

  --text-light: #111111;
  --text-dark: #111111;
  --muted: #555555;
}

/* =========================================================
🔹 MAIN CONTAINER
========================================================= */
.converter-container {
  max-width: 920px;
  margin: 48px auto;
  padding: 36px;
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Dark mode */
.dark-mode .converter-container {
  background: var(--card-bg-dark);
  color: #f2f2f2;
}

/* =========================================================
🔹 PAGE HEADER
========================================================= */
.converter-container h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.converter-container .subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.dark-mode .converter-container .subtitle {
  color: rgba(255,255,255,0.7);
}

/* =========================================================
🔹 PAGE HEADER – CENTER ALIGN
========================================================= */
.converter-container > header {
  text-align: center;
  margin-bottom: 32px;
}

.converter-container > header .subtitle {
  max-width: 640px;     /* professional readable width */
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
🔹 FORM
========================================================= */
.converter-container form {
  display: grid;
  gap: 18px;
}

.converter-container label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Inputs & selects */
.converter-container input,
.converter-container select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.converter-container input:focus,
.converter-container select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

/* Dark mode inputs */
.dark-mode .converter-container input,
.dark-mode .converter-container select {
  background: #2a2a2a;
  color: #f4f4f4;
  border: 1px solid rgba(255,255,255,0.2);
}

/* =========================================================
🔹 PRIMARY BUTTON
========================================================= */
.converter-container button[type="submit"] {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.converter-container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* =========================================================
🔹 RESULT CARD
========================================================= */
.result-box {
  margin-top: 36px;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  color: #111111;
  text-align: center;
  box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

.dark-mode .result-box {
  background: #1c1c1c;
  color: #f4f4f4;
}

/* Branding */
.result-box .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 16px;
}

/* Conversion flow */
.conversion-flow p {
  margin: 0;
  font-size: 15px;
}

.zone-label {
  font-size: 13px;
  opacity: 0.6;
}

/* Arrow */
.result-box .arrow {
  font-size: 26px;
  margin: 14px 0;
  opacity: 0.45;
}

/* Time difference */
.time-difference {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.8;
}

/* =========================================================
🔹 LIVE CLOCKS
========================================================= */
.clock-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.clock-row div {
  padding: 14px;
  border-radius: 12px;
  background: #f6f6f6;
  font-size: 14px;
}

.dark-mode .clock-row div {
  background: rgba(255,255,255,0.08);
}

/* =========================================================
🔹 ACTION BUTTONS
========================================================= */
.actions {
  margin-top: 22px;
}

.actions button {
  margin: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #eeeeee;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.actions button:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.dark-mode .actions button {
  background: #2b2b2b;
  color: #f5f5f5;
}

.flag-icon {
  width: 28px;
  vertical-align: middle;
  margin-bottom: 6px;
}

#convert-result-box {
  margin-top: 24px;
}

.result-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.converted-block + .converted-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.zone-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.zone-time {
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* =========================================================
🔹 PREMIUM NOTICE BOX
========================================================= */
.upgrade-notice{
  background:#fff;
  padding:40px;
  border-radius:16px;
  text-align:center;
  box-shadow:0 14px 40px rgba(0,0,0,.12);

  max-width:600px;
  margin:80px auto;
}

.upgrade-notice h2{
  font-size:26px;
  margin-bottom:10px;
}

.upgrade-notice p{
  color:#555;
  margin-bottom:20px;
}

.upgrade-notice .btn{
  display:inline-block;
  background:#0f62fe;
  color:#fff;
  padding:12px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}

/* =========================================================
🔹 RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .converter-container {
    margin: 28px 16px;
    padding: 26px;
  }

  .converter-container h1 {
    font-size: 24px;
  }

  .clock-row {
    grid-template-columns: 1fr;
  }
}
