body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}


/* NAVBAR */
nav {
  background-color: #1e40af;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* CONTENT */
section {
  padding: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #1e40af;
  font-weight: bold;
  text-decoration: none;
}
/* DARK MODE */
body.dark {
  background-color: #111827;
  color: #f9fafb;
}

body.dark nav {
  background-color: #1f2937;
}

body.dark .card {
  background-color: #1f2937;
  color: white;
}

#darkToggle {
  background: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
input {
  padding: 8px;
  width: 90%;
  max-width: 300px;
}

button {
  padding: 8px 16px;
  background-color: #1e40af;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
textarea {
  width: 90%;
  max-width: 300px;
  height: 80px;
  padding: 8px;
}
/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin: 10px 0;
  }

  section {
    padding: 10px;
  }

  .card {
    width: 100%;
    margin-bottom: 15px;
  }
}
.card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

/* DASHBOARD (REFERENCE STYLE) */
.dashboard {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.dashboard-title {
  font-size: 32px;
  margin-bottom: 5px;
}

.dashboard-subtitle {
  color: gray;
  margin-bottom: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.dashboard-card {
  background: white;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}


.dashboard-card h3 {
  margin-top: 0;
}

.dashboard-card p {
  color: #555;
}

.dashboard-card a {
  text-decoration: none;
  color: #2563eb;
  font-weight: bold;
}
/* NAVBAR - PRODUCT STYLE */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left h2 {
  margin: 0;
  font-size: 20px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar-links a:hover {
  color: #2563eb;
}

.dark-btn {
  border: none;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  opacity: 0.9;
}
.dashboard-card p {
  line-height: 1.6;
  font-size: 14px;
}
/* SMOOTH TRANSITIONS */
* {
  transition: background-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s ease;
}
button:hover {
  transform: translateY(-1px);
}
.navbar-links a {
  position: relative;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: width 0.25s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}   