/* Replace existing header styles with this */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background: #f4f8fb;
  padding: 1.5rem 0 1rem 0;
  box-shadow: 0 2px 12px rgba(0,188,212,0.06);
}

.navContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  background: transparent;
}
.dark-theme .navContainer {
  background: #181818;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-section i{
  font-size: 2.9rem;
}

.logo-section .logo {
  font-size: 2.7rem;
  font-family: inherit;
  font-weight: 700;
  color: #00bcd4;
}
.dark-theme .logo-section .logo {
  color: #fff;
}

.logo-section h2 {
  font-size: 1.4rem;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  color: #0097a7;
}
.dark-theme .logo-section h2 {
  color: #fff;
}

.navlinkcont {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navLinks {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navLinks li a {
  color: #2794a0;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  line-height: 20px;
  transition: all 0.3s ease;
  /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.781); */
}

.navLinks li a:hover {
  color: #00bcd4;
  font-size: 1.35rem;
}

#theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid #00bcd4;
  background: #fff;
  color: #00bcd4;
  transition: all 0.3s ease;
  margin: 0 auto;
  margin-top: 10px;
}
#theme-toggle i {
  font-size: 1.4rem;
  color: inherit;
}
@media (max-width: 600px) {
  #theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  #theme-toggle i {
    font-size: 1.1rem;
  }
}


/* Add these styles to converter.css */
body.light-theme {
  background: #f4f8fb;
  color: #222;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}

main.converter-page {
  max-width: 480px;
  margin: 2.5rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Decorative FontAwesome icons in the background */
main.converter-page::before,
main.converter-page::after {
  content: '\f2db'; /* fa-database */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  opacity: 0.07;
  font-size: 10rem;
  color: #00bcd4;
  z-index: 0;
  pointer-events: none;
}
main.converter-page::before {
  content: '\f2db'; /* fa-database */
  top: -60px;
  left: -80px;
}
main.converter-page::after {
  content: '\f1c0'; /* fa-hdd */
  bottom: -80px;
  right: -60px;
}

@media (max-width: 600px) {
  main.converter-page::before,
  main.converter-page::after {
    font-size: 5.5rem;
    left: -30px;
    right: -30px;
  }
}

#converter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
  border: 1px solid #e3e8ee;
}

#converter-form label {
  display: block;
  margin-bottom: 0.3rem;
}
#converter-form input[type="number"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}

#input-value {
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  background: #f7fafc;
  transition: border 0.2s;
}
#input-value:focus {
  border-color: #00bcd4;
  outline: none;
}

.unit-selection {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.unit-selection select {
  min-width: 80px;
  max-width: 120px;
  width: 100vh;
  box-sizing: border-box;;
}
#from-unit, #to-unit {
  flex: 1;
  padding: 0.85rem 0.7rem;
  font-size: 1rem;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  background: #f7fafc;
  color: #222;
  transition: border 0.2s;
}
#from-unit:focus, #to-unit:focus {
  border-color: #00bcd4;
  outline: none;
}

#swap-units {
  width: 44px;
  height: 44px;
  background: #00bcd4;
  color: #fff;

  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 0.2rem;
}
#swap-units:hover {

  background: white;
  color:#00bcd4;
  border: solid #0097a7 2px;
}

#convert-btn {
  background: linear-gradient(90deg, #00bcd4 60%, #0097a7 100%);
  color: #fff;
  border: none;
  padding: 0.95rem 0;
  font-size: 1.13rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}
#convert-btn:hover {
  background: linear-gradient(90deg, #0097a7 60%, #00bcd4 100%);
  box-shadow: 0 4px 18px rgba(0,188,212,0.13);
}

.converter-result {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 1.22rem;
  color: #0097a7;
  min-height: 2.5em;
  background: #f7fafc;
  border-radius: 8px;
  padding: 1.1rem 0.5rem;
  box-shadow: 0 1px 6px rgba(0,188,212,0.06);
  border: 1px solid #e3e8ee;
}


/* Add to bottom of converter.css */
.dark-theme {
  background: #121212;
  color: #e0e0e0;
}

.dark-theme #converter-form {
  background: #333;
  color: #fff;
  border: 1.5px solid #444;
  box-shadow: 0 6px 32px rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.dark-theme .converter-result {
  background: #333;
  color: #ffffff;
  border: 1.5px solid #444;
  transition: all 0.3s ease;
}
.dark-theme .unit-selection {
  background: #333;
  transition: all 0.3s ease;
}
.dark-theme #converter-form label,
.dark-theme .unit-label {
  color: #ff305b;
  transition: all 0.3s ease;
}
.dark-theme #input-value,
.dark-theme #from-unit,
.dark-theme #to-unit {
  background: #23232b;
  color: #fff;
  border: 1.5px solid #444;
  transition: all 0.3s ease;
}
.dark-theme #input-value:focus,
.dark-theme #from-unit:focus,
.dark-theme #to-unit:focus {
  border-color: #ff305b;
  outline: none;
}
.dark-theme #swap-units {
  background: #ff305b;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}
.dark-theme #swap-units:hover {
  background: #fff;
  color: #ff305b;
  border: 2px solid #ff305b;
}
.dark-theme #convert-btn {
  background: #ff305b;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}
.dark-theme #convert-btn:hover {
  background: #fff;
  color: #ff305b;
  border: 2px solid #ff305b;
}
.dark-theme footer {
  background: #222;
  color: #fff;
  transition: all 0.3s ease;
}
.dark-theme .footer-title {
  color: #ff305b;
  transition: all 0.3s ease;
}
.dark-theme .footer-icons a {
  color: #ff305b;
  transition: all 0.3s ease;
}
.dark-theme .footer-icons a:hover {
  color: #fff;
}


/* Add to converter.css */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.converter-page {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

body, #converter-form, .converter-result, .unit-selection, .unit-label, label, input, select, button {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Nav drop shadow white in dark mode */
.dark-theme .navLinks li a {
  color: #fff;
  /* text-shadow: 0 2px 10px rgba(255,255,255,0.7); */
}
.dark-theme .navLinks li a:hover {
  color: #ff305b;
}

/* Background icons white in dark mode */
.dark-theme main.converter-page::before,
.dark-theme main.converter-page::after {
  color: #fff;
  opacity: 0.08;
}

/* Footer styles copied from style.css */
footer {
  background: #eaf3fa;
  border-top: 1px solid #d1d9e6;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 12px rgba(0,188,212,0.04);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0097a7;
  letter-spacing: 0.5px;
}
.footer-copy {
  font-size: 0.98rem;
  color: #4a5a6a;
}
.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.footer-icons a {
  color: #00bcd4;
  font-size: 1.35rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-icons a:hover {
  color: #0097a7;
  transform: scale(1.18) rotate(-8deg);
}

@media (max-width: 600px) {
  .footer-top {
    font-size: 0.98rem;
    gap: 0.3rem;
  }
  .footer-title {
    font-size: 1.01rem;
  }
  .footer-icons a {
    font-size: 1.1rem;
  }
}

/* Footer dark mode */
.dark-theme footer {
  background: #222;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(255,255,255,0.04);
}
.dark-theme .footer-title {
  color: #ff305b;
}
.dark-theme .footer-copy {
  color: #f4f4f4;
}
.dark-theme .footer-icons a {
  color: #ff305b;
}
.dark-theme .footer-icons a:hover {
  color: #fff;
}

.dark-theme header {
  background: #181818;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.dark-theme .navContainer {
  background: transparent;
}

.dark-theme main.converter-page {
  background: transparent;
}

html, body {
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .navLinks {
    gap: 1.2rem;
  }
  .navLinks li a {
    font-size: 1rem;
  }
  .navContainer {
    padding: 0 0.7rem;
  }
}

@media (max-width: 600px) {
  .navContainer {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.3rem;
  }
  .logo-section .logo {
    font-size: 1.7rem;
  }
  .logo-section h2 {
    font-size: 1.05rem;
    letter-spacing: 0.2px;
  }
  .navLinks {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
  }
  .navLinks li a {
    font-size: 0.98rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  #converter-form {
    padding: 1.2rem 0.5rem;
    gap: 0.7rem;
  }
  #converter-form input,
  #converter-form select,
  #converter-form button {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.7rem;
  }
  .converter-result {
    font-size: 1rem;
    padding: 0.7rem 0.2rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.98rem;
  }
  .footer-title {
    font-size: 1.01rem;
  }
  .footer-icons {
    flex-direction: row !important;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.7rem;
  }
  .footer-icons a {
    font-size: 1.1rem;
  }
}

/* Theme toggle icon color for both modes */
#theme-toggle  {
  color: #00bcd4;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: #00bcd4;
  color: #fff;
  border-color: #0097a7;
  font-size: 2.1rem;
}


.dark-theme #theme-toggle {
  background: #181818;
  border: 2px solid #ff305b;
  color: #ff305b;
}

.dark-theme #theme-toggle i {
  color: #ff305b;
}
.dark-theme #theme-toggle:hover i {
  color: #fff;
}
.dark-theme #theme-toggle:hover {
  background: #ff305b;
  color: #fff;
  border-color: #fff;
}

/* Converter labels and input text white in dark mode */
.dark-theme #converter-form label,
.dark-theme .unit-label {
  color: #fff;
}
.dark-theme #input-value,
.dark-theme #from-unit,
.dark-theme #to-unit {
  color: #fff;
  background: #23232b;
}
.dark-theme #input-value::placeholder {
  color: #bbb;
}
.dark-theme #from-unit option,
.dark-theme #to-unit option {
  color: #fff;
  background: #23232b;
}