/* 🌈 General Styles */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f9fafc;
  color: #222;
  text-align: center;
}

/* 🔹 Splash Screen */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #1e40af;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  animation: fadeOut 1s ease 1s forwards;
}
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   🧭 NEW HEADER STYLES (Branded Convert Labs Header)
   ========================================================= */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1e40af;
  color: white;
  padding: 1.2rem 0 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.site-header .logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s;
}
.site-header .logo img:hover {
  transform: scale(1.05);
}

.tagline {
  color: #ffffff !important;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-top: 0.3rem;
  animation: fadeIn 2s ease forwards 1s;
}

/* 🔹 Responsive Logo Size */
@media (max-width: 600px) {
  .site-header .logo img {
    height: 55px;
  }
}

/* 🔹 Theme Toggle (kept for future use if re-added) */
#themeToggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.3s;
}
#themeToggle:hover { transform: scale(1.2); }

/* 🔹 Tabs */
.tabs {
  background: #e5e7eb;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.7rem;
}
.tabs button {
  background: #1e40af;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}
.tabs button:hover {
  background: #1e3a8a;
}

/* 🔹 Converter Sections */
.converter {
  display: none;
  padding: 2rem 1rem;
}
.converter.active {
  display: block;
}
input, select, button, textarea {
  padding: 0.6rem;
  margin: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
button {
  background: #1e40af;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background: #1e3a8a;
}
textarea {
  width: 90%;
  height: 100px;
  resize: none;
}

/* =========================================================
   🟦 NEW FOOTER STYLES (Branded Convert Labs Footer)
   ========================================================= */
.site-footer {
  background-color: #0033A0;
  color: #fff;
  text-align: center;
  padding: 25px 10px;
  margin-top: 50px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.site-footer img {
  display: block;
  margin: 0 auto 10px;
  height: 50px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.3rem;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* 🔹 Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  color: #222;
  margin: 8% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: left;
}
.modal-content h2 {
  margin-top: 0;
  color: #1e40af;
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  box-sizing: border-box;
}
.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}
.close:hover { color: #000; }

/* 🔹 Dark Mode */
body.dark-mode {
  background: #1e1e1e;
  color: #f5f5f5;
  transition: background 0.4s;
}
body.dark-mode .site-header {
  background: #111827;
}
body.dark-mode .tabs {
  background: #2d2d33;
}
body.dark-mode .tabs button {
  background: #374151;
}
body.dark-mode .site-footer {
  background: #202020;
  color: #ccc;
}
body.dark-mode .modal-content {
  background: #2c2c2c;
  color: #f0f0f0;
}
