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

:root {
  --cp-ink: #0f172a;
  --cp-muted: #64748b;
  --cp-bg: #f2f5f9;
  --cp-surface: rgba(255, 255, 255, 0.92);
  --cp-border: rgba(15, 23, 42, 0.08);
  --cp-primary: #0f766e;
  --cp-primary-deep: #0b4f64;
  --cp-accent: #f59e0b;
  --cp-danger: #dc2626;
  --cp-success: #16a34a;
}

html {
  scroll-behavior: smooth;
}

body.cp-app {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cp-ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(245, 158, 11, 0.16), transparent 22%),
    linear-gradient(180deg, #07111f 0, #0f172a 170px, var(--cp-bg) 170px 100%);
  min-height: 100vh;
}

body.cp-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 0 16%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.08), transparent 0 12%);
  z-index: -1;
}

.cp-navbar {
  background: rgba(6, 12, 24, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cp-shell {
  padding-top: 1.4rem;
  padding-bottom: 2.2rem;
}

.cp-hero {
  background: linear-gradient(135deg, #0b1120 0%, #12344b 54%, #0f766e 100%);
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  position: relative;
}

.cp-hero::after {
  content: "";
  position: absolute;
  inset: auto -7rem -7rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(4px);
}

.cp-hero .badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cp-card,
.cp-filter-panel,
.cp-table,
.cp-surface {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.cp-card-body {
  padding: 1.25rem;
}

.cp-stat {
  height: 100%;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.cp-stat .label {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cp-muted);
  margin-bottom: 0.45rem;
}

.cp-stat .value {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
}

.cp-stat .hint {
  color: var(--cp-muted);
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.cp-filter-panel {
  padding: 1rem;
}

.cp-filter-panel label,
.cp-form label,
.cp-detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  margin-bottom: 0.35rem;
}

.cp-filter-panel input:not([type="checkbox"]):not([type="radio"]),
.cp-filter-panel select,
.cp-filter-panel textarea,
.cp-form input:not([type="checkbox"]):not([type="radio"]),
.cp-form select,
.cp-form textarea {
  width: 100%;
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--cp-ink);
  padding: 0.72rem 0.88rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cp-filter-panel input:focus,
.cp-filter-panel select:focus,
.cp-filter-panel textarea:focus,
.cp-form input:focus,
.cp-form select:focus,
.cp-form textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.cp-filter-panel input[type="checkbox"],
.cp-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.cp-filter-panel .form-check,
.cp-form .form-check {
  margin-bottom: 0;
}

.cp-filter-panel .form-check-label,
.cp-form .form-check-label {
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-table table {
  margin-bottom: 0;
}

.cp-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cp-table td,
.cp-table th {
  vertical-align: middle;
}

.cp-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.cp-badge-soft {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}

.cp-badge-review {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.cp-badge-overdue {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

.cp-badge-success {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.cp-badge-muted {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
}

.cp-section-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.cp-muted {
  color: var(--cp-muted);
}

.cp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.cp-detail-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cp-detail-item .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
  margin-bottom: 0.22rem;
}

.cp-detail-item .value {
  font-weight: 700;
}

.cp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-timeline li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cp-timeline li:last-child {
  border-bottom: 0;
}

.cp-timeline .meta {
  font-size: 0.8rem;
  color: var(--cp-muted);
}

.cp-login-wrap {
  min-height: calc(100vh - 1rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.cp-login-card {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.cp-login-hero {
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, #0b1120, #12344b, #0f766e);
  color: #fff;
}

.cp-login-body {
  padding: 1.5rem 1.6rem 1.7rem;
}

.cp-help {
  color: var(--cp-muted);
  font-size: 0.92rem;
}

.cp-details {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.cp-details summary {
  cursor: pointer;
  font-weight: 800;
}

.cp-details[open] summary {
  margin-bottom: 0.8rem;
}

@media (max-width: 767.98px) {
  .cp-hero,
  .cp-login-hero,
  .cp-login-body,
  .cp-card-body,
  .cp-filter-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cp-detail-grid {
    grid-template-columns: 1fr;
  }
}
