/* ==============================
   SimpleCalc Theme – Main Styles
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb;
  color: #111;
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------- Header ---------- */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

header a {
  text-decoration: none;
  color: #111;
}

nav {
  margin-top: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: #0078ff;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0056c7;
}

/* ---------- Calculator Boxes ---------- */
.calc-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.calc-box h2, .calc-box h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.calc-box iframe {
  border: none;
  width: 100%;
  border-radius: 8px;
}

/* ---------- Buttons & Inputs ---------- */
button, input[type="submit"] {
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover, input[type="submit"]:hover {
  background: #0056c7;
}

input, select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6rem;
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Dark Mode ---------- */
.dark-mode {
  background-color: #0f1115;
  color: #ddd;
}

.dark-mode header {
  background: #1a1c21;
  border-color: #2b2d33;
}

.dark-mode .calc-box {
  background: #1a1c21;
  color: #ddd;
}

.dark-mode footer {
  background: #1a1c21;
  color: #aaa;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  header h1 {
    font-size: 1.3rem;
  }
}
