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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  padding: 1.5rem 1rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.header p {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* 🎨 悠長假期經典看板封面容器 */
.cover-wrapper {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  background-color: #0f172a;
}

.cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.motto-banner {
  background-color: #f1f5f9;
  border-left: 3px solid #64748b;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: #475569;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.actions-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hidden-input {
  display: none;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-bar input {
  flex: 2;
}

.filter-bar select {
  flex: 1;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.25rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

input, select {
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  outline: none;
  width: 100%;
  background-color: #ffffff;
}

input:focus, select:focus {
  border-color: #2563eb;
}

/* 📅 原生日期控制項樣式優化，改善中英混雜與版面排版 */
input[type="date"], input[type="datetime-local"] {
  font-family: inherit;
  color: #1e293b;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.btn-primary {
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #334155;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

.btn-submit {
  width: 100%;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.btn-blue { background-color: #2563eb; }
.btn-blue:hover { background-color: #1d4ed8; }
.btn-green { background-color: #059669; }
.btn-green:hover { background-color: #047857; }

.w-auto { width: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  list-style: none;
}

.scrollable {
  max-height: 380px;
  overflow-y: auto;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.375rem;
}

.item-row-top {
  align-items: flex-start;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1;
}

.item-title {
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}

.item-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.item-notes {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 0.35rem;
  font-style: italic;
  word-break: break-word;
}

.item-actions {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.item-badge {
  display: inline-block;
  font-size: 0.65rem;
  background-color: #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.badge-overdue {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.interview-card {
  background-color: #f0fdf4;
  border-color: #dcfce7;
}

.interview-time {
  font-size: 0.75rem;
  color: #047857;
  font-weight: 600;
  margin-top: 0.25rem;
}

.text-done {
  text-decoration: line-through;
  color: #94a3b8;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 0.2rem;
}

.btn-icon:hover {
  color: #2563eb;
}

.btn-del:hover {
  color: #ef4444;
}

.empty-state {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 2rem 0;
}

.modal {
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  max-width: 540px;
  width: 92%;
  margin: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.modal-box {
  padding: 1.5rem;
  background: #ffffff;
}

.modal-box h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-intro {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.modal-actions-right {
  display: flex;
  justify-content: flex-end;
}

.modal-actions-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-cell {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.review-questions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  background-color: #eff6ff;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid #2563eb;
  margin-bottom: 1.25rem;
}

.footer-trust {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.trust-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-pill {
  font-size: 0.7rem;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trust-pill:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.guide-step-card {
  display: flex;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.85rem;
  align-items: flex-start;
}

.step-num {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.guide-step-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.825rem;
  color: #334155;
  line-height: 1.5;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid #059669;
  margin-bottom: 1.25rem;
}

.compliance-list strong {
  color: #0f172a;
}
