/* ===========================
   Global Styles
   =========================== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ===========================
   Navbar & Dropdown
   =========================== */
.navbar-brand {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #f8f9fa;
  transition: color 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffc107;
}

/* Multi-level dropdown fix */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* Show submenu on hover (desktop only) */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Style dropdown items */
.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background 0.2s ease-in-out;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

/* ===========================
   Container & Sections
   =========================== */
main.container {
  max-width: 960px;
}

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===========================
   Card / Tool Styling
   =========================== */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.card-header {
  font-weight: 500;
  background: #343a40;
  color: #fff;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.card-body {
  background: #fff;
}

/* ===========================
   Forms
   =========================== */
.form-control,
.form-select {
  border-radius: 0.5rem;
  box-shadow: none;
  border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-primary {
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
}

/* ===========================
   Footer
   =========================== */
footer {
  background: #212529;
  color: #adb5bd;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer a {
  color: #ffc107;
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: #fff;
}
