/* A shared quiet glass surface for the dashboard and quote card. */
:root {
  --card-surface: linear-gradient(125deg, rgba(7, 18, 28, .22), rgba(3, 12, 21, .34));
  --card-border: rgba(201, 231, 249, .10);
  --card-radius: 18px;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(235, 248, 255, .035);
  --card-hover-border: rgba(201, 231, 249, .20);
  --card-hover-shadow: 0 9px 28px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(235, 248, 255, .055);
}
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-surface);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--card-shadow);
  padding: 22px 26px 20px 28px;
  transition: border-color .3s, box-shadow .3s;
}
.panel:hover,
.panel:focus-within { border-color: var(--card-hover-border); box-shadow: var(--card-hover-shadow); }

.panel::before,
.panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.panel::before {
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(223, 242, 255, .035), transparent 42%);
}

.panel::after { display: none; animation: none; }

.panel-heading { border-bottom-color: rgba(190, 218, 240, .12); }
.panel-heading h2 {
  color: #f1f7fc;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .1px;
}

.panel .month-select select {
  border: 1px solid rgba(207, 232, 251, .18);
  border-radius: 13px;
  background: rgba(180, 223, 255, .045);
  color: #dcebf6;
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, .045);
  transition: background .18s, border-color .18s;
}
.panel .month-select select:hover {
  background: rgba(180, 223, 255, .08);
  border-color: rgba(199, 235, 255, .32);
}
.panel .month-select::after {
  border-color: #b4d5eb;
  border-width: 1.5px;
}

.panel .blue-button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(135, 212, 255, .24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(63, 161, 222, .24), rgba(40, 117, 173, .13));
  color: #f4fbff;
  font-size: 18px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(205, 239, 255, .10), 0 3px 12px rgba(0, 9, 18, .13);
}
.panel .blue-button:hover {
  background: linear-gradient(135deg, rgba(76, 176, 239, .34), rgba(48, 135, 194, .22));
  border-color: rgba(164, 224, 255, .40);
  box-shadow: inset 0 1px 0 rgba(220, 245, 255, .13), 0 4px 16px rgba(0, 19, 37, .16);
  filter: none;
}
.panel .plus { font-size: 23px; }

.panel .stat + .stat { border-left-color: rgba(190, 218, 240, .17); }
.panel .stat-label { color: #b8ccd9; font-size: 20px; }
.panel .stat-value {
  color: #f5faff;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -.4px;
  margin-top: 5px;
  transition: color .18s;
}
.panel .stat:hover .stat-value { color: #ccecff; }
.panel .stat-note { color: #abc1d2; font-size: 17px; }
.panel .example-note { color: #9cafc1; font-size: 13px; font-style: normal; }

.panel .task-row {
  border-bottom-color: rgba(190, 218, 240, .12);
  transition: background .18s;
}
.panel .task-row:hover { background: rgba(185, 224, 251, .035); }
.panel .task-title-button { font-size: 22px; }
.panel .task-date { color: #b5c9d9; font-size: 18px; }
.panel .task-check {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(158, 207, 236, .45);
  border-radius: 6px;
  background: rgba(203, 233, 255, .045);
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, .05);
  transition: background .18s, border-color .18s;
}
.panel .task-check:hover {
  background: rgba(133, 211, 255, .10);
  border-color: rgba(180, 228, 255, .70);
}
.panel .task-check:checked {
  background: linear-gradient(135deg, rgba(63, 161, 222, .40), rgba(34, 116, 176, .25));
  border-color: rgba(141, 214, 255, .70);
}
.panel .task-row.completed .task-date { color: #8298a5; }
.panel .all-tasks { color: #a2dbff; font-size: 18px; font-weight: 500; }
.panel .all-tasks:hover { color: #e1f5ff; }
.panel .arrow { font-size: 25px; }

.panel .filters {
  padding: 4px;
  border-color: rgba(207, 232, 251, .13);
  border-radius: 12px;
  background: rgba(180, 223, 255, .025);
}
.panel .filter-button { border-radius: 8px; color: #b5c9d9; }
.panel .filter-button.active {
  color: #f1f9ff;
  background: linear-gradient(135deg, rgba(63, 161, 222, .24), rgba(40, 117, 173, .13));
  box-shadow: inset 0 1px 0 rgba(205, 239, 255, .08);
}
.panel .search-input {
  border-color: rgba(207, 232, 251, .18);
  border-radius: 12px;
  background: rgba(180, 223, 255, .045);
  color: #e9f3fb;
}
.panel .search-input::placeholder { color: #8ea8b9; }
.panel .work-table th,
.panel .work-table td { border-bottom-color: rgba(190, 218, 240, .12); }
.panel :is(button, a, input, select):focus-visible {
  outline: 2px solid #a9e2ff;
  outline-offset: 3px;
}

@media (max-width: 1350px) and (min-width: 1051px) {
  .panel-heading h2 { font-size: 26px; }
  .panel .stat-label { font-size: 18px; }
  .panel .stat-value { font-size: 36px; }
  .panel .stat-note { font-size: 16px; }
  .panel .month-select select { font-size: 17px; }
}

@media (max-width: 1050px) {
  .panel { padding: 20px 22px 18px; border-radius: var(--card-radius); }
  .panel-heading h2 { font-size: 24px; }
  .panel .stat-label { font-size: 18px; }
  .panel .stat-value { font-size: 34px; }
  .panel .stat-note { font-size: 16px; }
  .panel .month-select select { font-size: 17px; }
  .panel .task-title-button { font-size: 20px; }
  .panel .task-date { font-size: 16px; }
}

@media (max-width: 750px) {
  .panel {
    padding: 18px 18px 16px;
    border-radius: var(--card-radius);
    background: var(--card-surface);
  }
  .panel-heading h2 { font-size: 22px; }
  .panel .month-select select { font-size: 15px; }
  .panel .blue-button { padding: 8px 12px; font-size: 15px; }
  .panel .plus { font-size: 21px; }
  .panel .stat-label { font-size: 14px; }
  .panel .stat-value { font-size: 28px; }
  .panel .stat:nth-child(2) .stat-value { font-size: clamp(19px, 5.3vw, 26px); }
  .panel .stat + .stat { padding-left: 13px; }
  .panel .stat-note { font-size: 12px; }
  .panel .example-note { font-size: 12px; }
  .panel .task-title-button { font-size: 18px; }
  .panel .task-date { font-size: 14px; }
  .panel .task-check { width: 22px; height: 22px; }
  .panel .all-tasks { font-size: 17px; }
}

@media (max-width: 390px) {
  .panel { padding-left: 14px; padding-right: 14px; }
  .panel-heading h2 { font-size: 20px; }
  .panel .month-select select { font-size: 14px; }
  .panel .stat-label { font-size: 13px; }
  .panel .task-title-button { font-size: 17px; }
  .panel .task-date { font-size: 13px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --card-surface: rgba(5, 18, 29, .88); }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --card-surface: rgba(5, 18, 29, .94); }
}

@media (prefers-reduced-motion: reduce) {
  .panel::after { display: none; animation: none; }
}
