/* Cards, buttons, badges, chips, upload, drawer */

.card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s6) var(--s5);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn--block { width: 100%; margin-top: var(--s3); }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-1); }
.btn--primary:hover { background-color: #9A0028; }
.btn--ghost { background: transparent; color: var(--petrol); border-color: var(--rule); }
.btn--ghost:hover { background: var(--surface); }
.btn--deep { background: var(--petrol); color: var(--white); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--link { background: none; border: none; color: var(--teal); font-weight: var(--fw-bold); padding: 0; }
.btn__icon { font-family: inherit; }

/* chips / filters */
.chip {
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--text-muted);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
}
.chip.is-active { background: var(--petrol); color: var(--white); border-color: var(--petrol); }

/* assignment card */
.item {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 0 var(--s4);
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: var(--s4) var(--s4);
  margin-bottom: var(--s3);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .06s ease;
}
.item:hover { box-shadow: var(--shadow-2); }
.item:active { transform: translateY(1px); }
.item__accent { grid-row: 1 / span 2; width: 4px; height: 100%; border-radius: var(--r-pill); background: var(--rule); align-self: stretch; }
.item--todo .item__accent { background: var(--status-todo); }
.item--soon .item__accent { background: var(--status-soon); }
.item--submitted .item__accent { background: var(--status-submitted); }
.item--graded .item__accent { background: var(--status-graded); }

.item__main { min-width: 0; }
.item__course { font-size: 12px; font-weight: var(--fw-bold); color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.item__title { font-size: 16px; font-weight: var(--fw-bold); color: var(--ink); margin-top: 2px; }
.item__meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; display: flex; gap: var(--s3); flex-wrap: wrap; }
.item__due--urgent { color: var(--orange); font-weight: var(--fw-bold); }
.item__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }

/* status badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: var(--fw-bold);
  padding: 4px 10px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--todo { color: var(--teal); background: #BC003114; }
.badge--soon { color: #5a5a5e; background: #8a8a8a26; }
.badge--submitted { color: var(--petrol); background: #11111112; }
.badge--graded { color: var(--petrol); background: #11111112; }
.badge--grade { color: var(--white); background: var(--petrol); font-size: 13px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(19,21,22,.42); backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 100%);
  background: var(--white);
  box-shadow: var(--shadow-3);
  overflow-y: auto;
  animation: slideIn .22s ease;
  display: flex; flex-direction: column;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.dr__head { padding: var(--s5); border-bottom: 1px solid var(--rule); position: relative; }
.dr__close { position: absolute; top: var(--s4); right: var(--s4); border: none; background: var(--surface); width: 34px; height: 34px; border-radius: var(--r-pill); font-size: 18px; color: var(--muted); }
.dr__course { font-size: 12px; font-weight: var(--fw-bold); color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.dr__title { font-size: 21px; font-weight: var(--fw-extrabold); margin-top: 4px; padding-right: var(--s6); }
.dr__meta { display: flex; gap: var(--s4); margin-top: var(--s3); font-size: 14px; color: var(--text-muted); }
.dr__body { padding: var(--s5); flex: 1; }
.dr__section-label { font-size: 13px; font-weight: var(--fw-bold); color: var(--ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--s3); }
.dr__desc { color: var(--text-muted); font-size: 15px; margin-bottom: var(--s5); }
.dr__foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--rule); background: var(--surface); position: sticky; bottom: 0; }

/* upload dropzone */
.drop {
  border: 2px dashed var(--teal-soft);
  border-radius: var(--r-md);
  background: #BC003108;
  padding: var(--s6) var(--s4);
  text-align: center;
  color: var(--text-muted);
  transition: background .15s ease, border-color .15s ease;
}
.drop.is-over { background: #BC003114; border-color: var(--teal); color: var(--teal); }
.drop__icon { font-size: 30px; }
.drop__hint { font-size: 14px; margin-top: var(--s2); }
.drop__or { font-size: 13px; margin-top: var(--s1); opacity: .75; }

.file {
  display: flex; align-items: center; gap: var(--s3);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s3) var(--s4); background: var(--white);
}
.file__icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: #BC003114; color: var(--teal); display: grid; place-items: center; font-weight: var(--fw-bold); font-size: 12px; }
.file__name { font-weight: var(--fw-bold); font-size: 14px; }
.file__size { font-size: 12px; color: var(--text-muted); }
.file__remove { margin-left: auto; border: none; background: none; color: var(--muted); font-size: 18px; }

/* feedback block */
.feedback { background: var(--surface); border-radius: var(--r-md); padding: var(--s4); }
.feedback__grade { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.feedback__score { font-size: 30px; font-weight: var(--fw-extrabold); color: var(--petrol); }
.feedback__text { font-size: 14px; color: var(--text); }
.feedback__by { font-size: 12px; color: var(--text-muted); margin-top: var(--s2); }

.submitted-note { display: flex; align-items: center; gap: var(--s2); color: var(--teal); font-weight: var(--fw-bold); font-size: 14px; }
