/* bs.css — shared styling for the fake-LMS pages in the ClassWatcher demo (/try/).
   Generic LMS look (no D2L assets/branding): blue header, breadcrumb, data grid. */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #f0f2f4;
  color: #222;
}

/* ── LMS chrome ── */
.lms-header {
  background: #004b87;
  color: #fff;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lms-header .logo { font-size: 17px; font-weight: bold; letter-spacing: -0.5px; }
.lms-header .divider { opacity: 0.4; }
.lms-header .course-name { font-size: 12px; opacity: 0.85; }

.lms-nav {
  background: #fff;
  border-bottom: 1px solid #d5dbe1;
  padding: 0 16px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.lms-nav a {
  display: inline-block;
  padding: 9px 13px;
  font-size: 12px;
  color: #004b87;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.lms-nav a:hover { background: #eef3f8; }
.lms-nav a.active { border-bottom-color: #004b87; font-weight: bold; }
.lms-nav a.stub { color: #6b7885; }

.breadcrumb {
  background: #e8edf2;
  padding: 6px 16px;
  font-size: 11px;
  color: #555;
  border-bottom: 1px solid #d5dbe1;
}
.breadcrumb a { color: #004b87; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-wrapper { max-width: 980px; margin: 0 auto; padding: 20px 16px 60px; }

.page-title { font-size: 20px; font-weight: bold; color: #222; margin-bottom: 4px; }
.page-sub { font-size: 12px; color: #666; margin-bottom: 16px; }

/* ── Data grid ── */
.d2l-grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccd3da;
  border-radius: 4px;
  overflow: hidden;
}
.d2l-grid thead tr { background: #dce6f0; }
.d2l-grid thead th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #b8c2cc;
  white-space: nowrap;
}
.d2l-grid tbody tr { background: #fff; border-top: 1px solid #e7ebef; }
.d2l-grid tbody tr:hover { background: #f2f6fa; }
.d2l-grid tbody th, .d2l-grid tbody td {
  padding: 8px 10px;
  text-align: left;
  font-weight: normal;
  font-size: 12px;
  color: #444;
  white-space: nowrap;
}
a.lms-link { color: #015ad7; text-decoration: none; font-weight: 500; }
a.lms-link:hover { text-decoration: underline; }

.no-submission { color: #c0392b; font-style: italic; }
.sub-file { color: #666; font-size: 11px; }

.stats-bar {
  background: #fff;
  border: 1px solid #ccd3da;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #555;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.stats-bar strong { color: #222; }
.stats-missing { color: #c0392b; }

/* ── Home page cards ── */
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
@media (max-width: 720px) { .home-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid #ccd3da;
  border-radius: 4px;
  padding: 14px 16px;
}
.card h3 {
  font-size: 13px;
  color: #004b87;
  margin-bottom: 10px;
  border-bottom: 1px solid #e7ebef;
  padding-bottom: 6px;
}
.announcement { margin-bottom: 12px; }
.announcement .a-title { font-weight: bold; font-size: 12px; color: #333; }
.announcement .a-date { font-size: 10px; color: #888; margin-bottom: 3px; }
.announcement p { font-size: 12px; color: #555; line-height: 1.5; }
.upcoming-item { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px solid #f0f2f4; }
.upcoming-item:last-child { border-bottom: none; }
.upcoming-item .u-due { color: #c0392b; font-size: 11px; }

/* ── "Not part of this demo" hint ── */
.demo-stub-tip {
  position: fixed;
  z-index: 9000;
  background: #1B2B4B;
  color: #fff;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 240px;
}
.demo-stub-tip.show { opacity: 1; }

/* ── ClassWatcher pills ── */
.cw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  color: #fff;
  cursor: pointer;
  vertical-align: middle;
  border: none;
  line-height: 1;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cw-pill.pop { transform: scale(1); }
.cw-pill-green { background: #2e9e5b; }
.cw-pill-amber { background: #e8a13d; }
.cw-pill-red   { background: #d64541; }
.cw-pill:hover { filter: brightness(1.1); }

/* ── Slide-out student panel (Feature B lookalike) ── */
.cw-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 40, 0.25);
  z-index: 9500;
  opacity: 0;
  transition: opacity 0.2s;
}
.cw-panel-backdrop.show { opacity: 1; }

.cw-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  z-index: 9600;
  box-shadow: -6px 0 24px rgba(0,0,0,0.22);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.cw-panel.show { transform: translateX(0); }

.cw-panel-head {
  background: #1B2B4B;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cw-panel-head .cw-brand { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #4DB8C8; margin-bottom: 2px; }
.cw-panel-head .cw-student { font-size: 16px; font-weight: bold; }
.cw-panel-close {
  background: none; border: none; color: #9fb0c8; font-size: 18px; cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
}
.cw-panel-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cw-panel-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.cw-panel-section { margin-bottom: 18px; }
.cw-panel-section h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #6b7885; margin-bottom: 8px;
}
.cw-missing-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-radius: 6px; background: #fdf1f0;
  border: 1px solid #f2d4d2; margin-bottom: 6px; font-size: 12px; color: #333;
}
.cw-missing-item .mi-due { display: block; font-size: 10px; color: #a94442; margin-top: 2px; }
.cw-allclear {
  padding: 10px; border-radius: 6px; background: #eef8f0;
  border: 1px solid #cde8d3; font-size: 12px; color: #2e7d43;
}
.cw-hist-item { padding: 7px 0; border-bottom: 1px solid #f0f2f4; font-size: 12px; }
.cw-hist-item:last-child { border-bottom: none; }
.cw-hist-meta { font-size: 10px; color: #8a95a1; margin-bottom: 2px; }
.cw-hist-none { font-size: 12px; color: #8a95a1; font-style: italic; }

.cw-panel-actions {
  padding: 12px 16px;
  border-top: 1px solid #e7ebef;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cw-action-btn {
  padding: 9px 6px; border-radius: 6px; border: 1px solid #ccd3da;
  background: #f7f9fb; font-size: 12px; cursor: pointer; color: #1B2B4B;
  font-weight: 600;
}
.cw-action-btn:hover { background: #eef3f8; }
.cw-action-btn.primary {
  grid-column: 1 / span 2;
  background: #4DB8C8; border-color: #4DB8C8; color: #fff;
}
.cw-action-btn.primary:hover { background: #3fa4b4; }
.cw-action-btn:disabled { opacity: 0.5; cursor: default; }
