﻿@import url("https://fonts.googleapis.com/css2?family=SUIT:wght@400;500;700;800&display=swap");

.progress-overview-shell {
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --line: #d7e1f2;
  --text: #152a48;
  --muted: #5a6f93;
  --primary: #1f5cb8;
  --primary-strong: #123f84;

  position: relative;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  font-family: "SUIT", "Noto Sans KR", sans-serif;
}

.progress-overview-shell::before,
.progress-overview-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.progress-overview-shell::before {
  top: -80px;
  left: -50px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 92, 184, 0.18), rgba(31, 92, 184, 0));
}

.progress-overview-shell::after {
  top: -26px;
  right: -24px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 137, 173, 0.16), rgba(37, 137, 173, 0));
}

.progress-overview-hero {
  border: 1px solid #1b5097;
  border-radius: 24px;
  padding: 26px 30px;
  margin-bottom: 14px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #0f315d 0%, #1b56ad 60%, #1f7397 100%);
  box-shadow: 0 18px 30px rgba(13, 40, 80, 0.22);
}

.progress-overview-hero h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.56rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.progress-overview-message {
  display: none;
  margin-bottom: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-overview-message.info,
.progress-overview-message.success,
.progress-overview-message.error {
  display: block;
}

.progress-overview-message.info {
  background: #eaf3ff;
  border-color: #c8daf6;
  color: #1a518f;
}

.progress-overview-message.success {
  background: #e9f8f0;
  border-color: #bfead0;
  color: #0f7a50;
}

.progress-overview-message.error {
  background: #ffeded;
  border-color: #f3c3c3;
  color: #a83535;
}

.overview-controls-card,
.overview-list-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 40, 78, 0.08);
  padding: 14px;
  margin-bottom: 14px;
}

.overview-controls-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  margin: 0;
  color: #26466f;
  font-size: 0.83rem;
  font-weight: 800;
}

.field input,
.field select,
.actions-inline button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfdbf1;
  border-radius: 11px;
  background: #f8fbff;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #7ea7de;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(126, 167, 222, 0.2);
}

.actions-inline button {
  width: auto;
  border-color: #9fbae1;
  background: linear-gradient(140deg, #2a65bf, #18478f);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(25, 71, 138, 0.2);
  padding: 0 16px;
}

.actions-inline button:hover {
  filter: brightness(1.04);
}

.overview-list-card h2 {
  margin: 0;
  color: #1a365f;
  font-size: 1.02rem;
  font-weight: 800;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#overviewCountLabel {
  color: #5f7395;
  font-size: 0.84rem;
  font-weight: 800;
}

.overview-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.overview-item {
  border: 1px solid #d7e2f5;
  border-radius: 13px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.overview-item.empty {
  display: block;
  color: #6c829f;
  font-size: 0.86rem;
  font-weight: 700;
}

.overview-item img,
.overview-avatar-empty {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #d8e3f5;
  object-fit: cover;
  background: #edf2f9;
}

.overview-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

.overview-main h4 {
  margin: 0 0 4px;
  color: #1c355a;
  font-size: 0.97rem;
  font-weight: 800;
}

.overview-main p {
  margin: 0;
  color: #586d8f;
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 600;
}

.overview-side {
  min-width: 220px;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.overview-bar {
  width: 180px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #d5deee;
  background: #e6edf8;
  overflow: hidden;
}

.overview-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #3b82f6 60%, #16a34a);
}

.overview-side .score {
  color: #1f4f90;
  font-size: 0.88rem;
  font-weight: 800;
}

.overview-link {
  text-decoration: none;
  border: 1px solid #a9c1e6;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f4f90;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
}

.overview-link:hover {
  background: #ffffff;
}

.progress-overview-loading {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 20, 37, 0.35);
  backdrop-filter: blur(2px);
}

.progress-overview-loading-card {
  width: min(92vw, 360px);
  border: 1px solid #cfdaee;
  border-radius: 18px;
  padding: 20px 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 18px 30px rgba(13, 35, 71, 0.24);
}

.progress-overview-loading-card p {
  margin: 0;
  color: #2b3f62;
  font-size: 0.94rem;
  font-weight: 700;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 3px solid #d6e3fa;
  border-top-color: #2f64bf;
  animation: progress-overview-spin 0.8s linear infinite;
}

@keyframes progress-overview-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .progress-overview-shell {
    width: min(100%, calc(100% - 24px));
    padding: 16px 0 28px;
  }

  .progress-overview-hero,
  .overview-controls-card,
  .overview-list-card {
    border-radius: 16px;
    padding: 14px;
  }

  .overview-controls-grid {
    grid-template-columns: 1fr;
  }

  .actions-inline button {
    width: 100%;
  }

  .overview-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .overview-side {
    min-width: 0;
    justify-items: start;
  }
}
