:root {
  --bg: #FFF9F4;
  --surface: #FFFFFF;
  --surface-2: #FFF3E8;
  --border: #F1E3D6;
  --text: #1F2937;
  --text-muted: #6B7280;
  --primary: #FF6B35;
  --primary-dark: #E85520;
  --primary-soft: #FFF0E8;
  --teal: #0D9488;
  --teal-soft: #E6F7F5;
  --indigo: #4F46E5;
  --indigo-soft: #EEF2FF;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* --- Login Screen --- */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top right, #FFE5D4 0%, #FFF9F4 55%, #E6F7F5 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.login-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.login-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

textarea.input {
  resize: vertical;
  min-height: 90px;
}

.login-hint {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.6;
}

.error-msg {
  color: var(--danger);
  background: var(--danger-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: #FFE7D4;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #FECACA;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 20px;
  font-size: 16px;
}

/* --- App Layout --- */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}

.topbar-badge-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.admin-tag {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.app-body {
  display: flex;
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  padding-bottom: 90px;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
}

.bottom-nav-item.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.bottom-nav-icon {
  font-size: 18px;
}

@media (max-width: 820px) {
  .sidebar {
    display: none;
  }
  .bottom-nav {
    display: flex;
  }
  .app-body {
    padding: 14px;
    padding-bottom: 84px;
  }
  .topbar {
    padding: 10px 14px;
  }
  .hide-mobile {
    display: none;
  }
}

/* --- Cards & Sections --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-prep { background: var(--amber-soft); color: #92400E; }
.badge-slot { background: var(--teal-soft); color: #115E59; }
.badge-job { background: var(--indigo-soft); color: #3730A3; }
.badge-done { background: var(--success-soft); color: #166534; }
.badge-pin { background: var(--danger-soft); color: #991B1B; }
.badge-class { background: var(--primary-soft); color: var(--primary-dark); }
.badge-group { background: #F3F4F6; color: #374151; }

/* Role Assignment Boxes */
.role-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.role-value {
  font-size: 16px;
  font-weight: 800;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.group-chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* Announcements */
.ann-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ann-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ann-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.ann-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ann-title-text {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Checklist */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.checklist-row.is-done {
  opacity: 0.65;
  background: #F9FAFB;
}

.checklist-row.is-done .checklist-text {
  text-decoration: line-through;
}

.checklist-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-text {
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
}

.checklist-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* Group Cards */
.group-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s, border-color 0.15s;
}

.group-card.accessible {
  cursor: pointer;
}

.group-card.accessible:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.group-card.mine {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom right, #FFF9F4, #FFFFFF);
}

.group-card.locked {
  opacity: 0.58;
  background: #F9FAFB;
}

/* Chat */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  background: #FAF7F4;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.chat-msg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg.is-mine {
  border-color: #FFD2BF;
  background: #FFF7F2;
}

.chat-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.chat-sender {
  font-weight: 800;
  color: var(--text);
}

.chat-body {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--surface-2);
  font-weight: 800;
  font-size: 13px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 90dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.ann-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  margin: 14px 0;
  background: #F3F4F6;
}

.ann-detail-content {
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: #1F2937;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.pdf-frame {
  width: 100%;
  height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F3F4F6;
  margin-top: 10px;
}

.pdf-viewer-box {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F3F4F6;
  max-height: 560px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pdf-viewer-box canvas {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.checklist-clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.checklist-clickable:hover {
  border-color: var(--primary);
  background: #FFFBF7;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* --- PPT Slide Presenter --- */
.ppt-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #111827;
  color: #1F2937;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.ppt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ppt-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.ppt-slide {
  width: 100%;
  max-width: 960px;
  min-height: 540px;
  background: #FFFDFB;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ppt-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.ppt-slide-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.ppt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: #fff;
  flex-wrap: wrap;
}

/* --- Countdown Banner --- */
.countdown-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF4D6D 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.28);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(6deg); }
}

.countdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-float-icon {
  display: inline-block;
  font-size: 26px;
  animation: floatBounce 2.2s ease-in-out infinite;
}

.countdown-title {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-main {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}

.countdown-timer-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-days-box {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 14px;
  text-align: center;
  min-width: 68px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.countdown-num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
}

.countdown-progress-wrap {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.countdown-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFF3B0, #FFFFFF);
  transition: width 0.6s ease;
}

/* --- Visual Org Chart & Shift Schedule --- */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.org-col {
  background: #F4FAF7;
  border: 1px solid #D5EAE0;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-col-header {
  font-size: 16px;
  font-weight: 900;
  color: #1B4332;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid #B7E4C7;
}

.org-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.org-card-title {
  background: #E2ECE9;
  color: #1F2937;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  text-align: center;
}

.org-card-row {
  display: flex;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.org-card-label {
  width: 78px;
  flex-shrink: 0;
  background: #F8FAFC;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-card-val {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.seat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #3730A3;
  font-weight: 800;
  font-size: 12px;
}

.seat-pill.is-me {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.35);
}

.shift-chart {
  border: 2px solid #93C5FD;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.shift-chart-head {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  padding: 14px 18px;
  border-bottom: 1px solid #BFDBFE;
}

.shift-chart-title {
  font-size: 18px;
  font-weight: 900;
  color: #1E3A8A;
  margin: 0 0 6px;
}

.shift-seat-banner {
  background: #fff;
  border: 1px solid #93C5FD;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1E40AF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.shift-table th {
  background: #6B93C6;
  color: #fff;
}

/* --- Resource Center --- */
.resource-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* --- 班級所需物品認領 --- */
.supply-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #FFFDFB;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supply-card.is-full {
  border-color: #BBF7D0;
  background: #F7FEF9;
}

.supply-progress-wrap {
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.supply-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #F7931E);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.supply-progress-bar.is-full {
  background: linear-gradient(90deg, #16A34A, #22C55E);
}
