/* Additional custom styles */

:root {
  --site-link-hover: #1f5f93;
  --site-focus: #e67e22;
}

body.quarto-dark,
body[data-bs-theme="dark"],
html.quarto-dark body {
  --site-link-hover: #a9c9f5;
  --site-focus: #f49b02;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Link styling */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--site-link-hover);
}

/* Image styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* List spacing */
ul,
ol {
  line-height: 1.8;
}

/* Improve readability */
p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Better focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--site-focus);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .sidebar,
  .nav-footer {
    display: none;
  }

  body {
    font-size: 12pt;
  }

}

/* Assignment dashboard cards */
.assignment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
}

.assignment-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #d6dee8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.assignment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #9fb6d1;
}

.assignment-card .assignment-title {
  display: block;
  margin: 0 0 0.5rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #102a43;
}

.assignment-due {
  margin: 0 0 0.45rem 0;
  color: #334e68;
  font-size: 0.92rem;
}

.assignment-desc {
  margin: 0 0 0.8rem 0;
  color: #243b53;
  font-size: 0.94rem;
  line-height: 1.45;
}

.assignment-card .card-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b63ce;
  border: 1px solid #c5d4e6;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: #fff;
}

.assignment-card .card-link:hover {
  color: #084b9a;
  border-color: #9fb6d1;
}

body.quarto-dark .assignment-card,
body[data-bs-theme="dark"] .assignment-card,
html.quarto-dark body .assignment-card {
  border-color: #3d4f63;
  background: linear-gradient(180deg, #1f2a36 0%, #1a232e 100%);
}

body.quarto-dark .assignment-card .assignment-title,
body[data-bs-theme="dark"] .assignment-card .assignment-title,
html.quarto-dark body .assignment-card .assignment-title {
  color: #d9e2ec;
}

body.quarto-dark .assignment-due,
body[data-bs-theme="dark"] .assignment-due,
html.quarto-dark body .assignment-due {
  color: #9fb3c8;
}

body.quarto-dark .assignment-desc,
body[data-bs-theme="dark"] .assignment-desc,
html.quarto-dark body .assignment-desc {
  color: #bcccdc;
}

body.quarto-dark .assignment-card .card-link,
body[data-bs-theme="dark"] .assignment-card .card-link,
html.quarto-dark body .assignment-card .card-link {
  color: #d6e4ff;
  border-color: #4b6178;
  background: #223142;
}
