.info-main-section {
  background: transparent;
  padding-top: 2.2rem;
  padding-bottom: 1.2rem;
  margin-bottom: 0.5rem;
}
.info-main-section .container {
  display: flex;
  justify-content: center;
}
.info-main-separator {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
.info-main-box {
  border-left: 4px solid #44a05b;
  background: #f8fcf9;
  font-size: 1.01rem;
  margin-bottom: 1.7rem;
}
.info-main-title {
  font-size: 1.08rem;
  color: #218838;
  display: flex;
  align-items: center;
}
.info-main-list {
  list-style: disc;
  padding-left: 1.2em;
  color: #22344a;
}
.info-main-list li {
  margin-bottom: 0.35em;
}
/* Érték kártyák egymás alatt (stack) */
.ertek-card-stack {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
}
.ertek-card {
  background: #fafbfc;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(18,32,51,0.04);
  padding: 1.2rem 1.5rem 1.1rem 1.5rem;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  position: relative;
}
.ertek-card-1 { border-left: 3px solid #44a05b; }
.ertek-card-2 { border-left: 3px solid #c25454; }
.ertek-card-0 { border-left: 3px solid #7b8ca7; }
.ertek-card-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .2rem;
}
.ertek-card-badge {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-right: 2px;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
}
.ertek-card-badge-1 { background: #e3f7ea; border-color: #44a05b; }
.ertek-card-badge-2 { background: #fbeaec; border-color: #c25454; }
.ertek-card-badge-0 { background: #f3f6fa; border-color: #7b8ca7; }
.ertek-card-title {
  font-weight: 700;
  font-size: 1.13rem;
  color: #22344a;
}
.ertek-card-desc {
  color: #22344a;
  font-size: 1.01rem;
  margin-left: 2.2rem;
}
.code-inline {
  font-family: 'Fira Mono', 'Consolas', monospace;
  background: #f3f6fa;
  border-radius: 4px;
  padding: 0 0.3em;
  font-size: .97em;
  color: #c254a0;
}
/* Információs sáv a publikus oldalon bal oldalt */
.info-sidebar-box {
  border-left: 4px solid #44a05b;
  background: #f8fcf9;
  font-size: 1.01rem;
}
.info-sidebar-title {
  font-size: 1.08rem;
  color: #218838;
  display: flex;
  align-items: center;
}
.info-sidebar-list {
  list-style: disc;
  padding-left: 1.2em;
  color: #22344a;
}
.info-sidebar-list li {
  margin-bottom: 0.35em;
}
/* Érték kártyák (dokumentáció) */
.ertek-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: flex-start;
  margin-bottom: 2.2rem;
}
.ertek-card {
  background: #fafbfc;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(18,32,51,0.04);
  padding: 1.2rem 1.5rem 1.1rem 1.5rem;
  min-width: 320px;
  max-width: 420px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  position: relative;
}
.ertek-card-1 { border-left: 3px solid #44a05b; }
.ertek-card-2 { border-left: 3px solid #c25454; }
.ertek-card-0 { border-left: 3px solid #7b8ca7; }
.ertek-card-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .2rem;
}
.ertek-card-badge {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-right: 2px;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
}
.ertek-card-badge-1 { background: #e3f7ea; border-color: #44a05b; }
.ertek-card-badge-2 { background: #fbeaec; border-color: #c25454; }
.ertek-card-badge-0 { background: #f3f6fa; border-color: #7b8ca7; }
.ertek-card-title {
  font-weight: 700;
  font-size: 1.13rem;
  color: #22344a;
}
.ertek-card-desc {
  color: #22344a;
  font-size: 1.01rem;
  margin-left: 2.2rem;
}
.code-inline {
  font-family: 'Fira Mono', 'Consolas', monospace;
  background: #f3f6fa;
  border-radius: 4px;
  padding: 0 0.3em;
  font-size: .97em;
  color: #c254a0;
}
/* Érték badge-ek sorba rendezése a dokumentációban */
.ertek-badge-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.ertek-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.ertek-badge {
  min-width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0 0.7em;
}
.ertek-badge-label {
  font-size: .92em;
  white-space: nowrap;
}
:root {
  --bg-base: #eef4ff;
  --bg-glow-a: rgba(0, 255, 194, 0.18);
  --bg-glow-b: rgba(0, 178, 255, 0.16);
  --panel: rgba(9, 16, 35, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text-main: #f7fbff;
  --text-soft: rgba(240, 247, 255, 0.72);
  --ink: #122033;
  --ink-soft: #66748c;
  --accent-a: #00f0c0;
  --accent-b: #27b3ff;
  --accent-c: #96ff66;
  --shadow-strong: 0 28px 65px rgba(5, 13, 30, 0.28);
  --shadow-soft: 0 14px 34px rgba(10, 18, 38, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, var(--bg-glow-a), transparent 28%),
    radial-gradient(circle at 85% 12%, var(--bg-glow-b), transparent 30%),
    linear-gradient(145deg, #eefaf0 0%, #e1f2e6 48%, #f1fbf1 100%);
  color: var(--ink);
  transition: background 260ms ease, color 260ms ease;
}

body.form-state-closed {
  background:
    radial-gradient(circle at top left, rgba(226, 98, 98, 0.24), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(238, 148, 148, 0.22), transparent 30%),
    linear-gradient(145deg, #fff0f0 0%, #f9e1e1 48%, #fff3f3 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: background 260ms ease;
}

body::before {
  top: -100px;
  right: -40px;
  background: rgba(20, 182, 132, 0.22);
}

body::after {
  bottom: -120px;
  left: -60px;
  background: rgba(116, 198, 140, 0.2);
}

body.form-state-closed::before {
  background: rgba(226, 98, 98, 0.24);
}

body.form-state-closed::after {
  background: rgba(238, 148, 148, 0.22);
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(8, 17, 35, 0.95), rgba(9, 16, 35, 0.86)),
    linear-gradient(135deg, rgba(0, 240, 192, 0.18), rgba(39, 179, 255, 0.16));
  border: 1px solid rgba(168, 236, 255, 0.16);
  box-shadow: var(--shadow-strong);
  color: var(--text-main);
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 26px rgba(0, 190, 220, 0.28);
}

.app-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.app-brand-copy strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.app-brand-copy span,
.sidebar-note,
.sidebar-stat p,
.app-nav-copy small,
.app-eyebrow,
.app-subtitle,
.section-hint,
.muted-label {
  color: var(--text-soft);
}

.sidebar-panel,
.sidebar-stat {
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.sidebar-panel h2,
.sidebar-stat h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.sidebar-panel p,
.sidebar-stat p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.94rem;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sidebar-tag,
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.sidebar-tag {
  background: rgba(0, 240, 192, 0.12);
  border: 1px solid rgba(0, 240, 192, 0.14);
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-nav-link:hover {
  transform: translateX(6px);
  border-color: rgba(0, 240, 192, 0.26);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.app-nav-link:active {
  transform: translateX(3px) scale(0.985);
}

.app-nav-link.active {
  background: linear-gradient(135deg, rgba(0, 240, 192, 0.22), rgba(39, 179, 255, 0.18));
  border-color: rgba(0, 240, 192, 0.34);
  box-shadow: 0 14px 28px rgba(0, 197, 179, 0.18);
}

.app-nav-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
}

.app-nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-nav-copy strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.app-nav-copy small {
  font-size: 0.75rem;
  line-height: 1.35;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.app-topbar,
.app-content {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(196, 217, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.82));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 34px;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.app-eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1396c6;
}

.app-subtitle {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
}

.app-topbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-chip {
  background: rgba(18, 32, 51, 0.06);
  border: 1px solid rgba(18, 32, 51, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.app-content {
  padding: 28px;
}

.app-content-compact {
  width: 100%;
  max-width: 920px;
  align-self: flex-start;
}

.surface-panel,
.hero-card,
.content-card,
#dynamicForm,
.form-builder-sidebar,
.form-builder-main,
.calendar-toolbar,
.login-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 220, 255, 0.6);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 32px rgba(12, 27, 52, 0.08);
}

.hero-card,
.content-card,
.calendar-toolbar,
.login-panel {
  padding: 24px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(12, 23, 43, 0.96), rgba(22, 36, 58, 0.92)),
    linear-gradient(135deg, rgba(0, 240, 192, 0.2), rgba(39, 179, 255, 0.18));
  color: var(--text-main);
  border-color: rgba(0, 240, 192, 0.18);
}

.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card li,
.hero-card .section-hint {
  color: inherit;
}

.hero-grid,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.form-grid-single {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
}

.hero-list,
.mini-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-list li,
.mini-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-list i,
.mini-list i {
  color: var(--accent-a);
}

.metric-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card .metric-card {
  background: rgba(18, 32, 51, 0.03);
  border-color: rgba(154, 181, 220, 0.32);
}

.status-summary-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(232, 241, 252, 0.92));
  border: 1px solid rgba(154, 181, 220, 0.38);
  box-shadow: 0 12px 24px rgba(12, 27, 52, 0.06);
}

.status-summary-card h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.status-summary-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.dynamic-grid-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dynamic-grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.dynamic-grid-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
}

.dynamic-grid-search i {
  position: absolute;
  left: 16px;
  color: var(--ink-soft);
  z-index: 1;
}

.dynamic-grid-search .form-control {
  padding-left: 44px;
}

.dynamic-grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dynamic-grid-actions .form-select {
  min-width: 160px;
}

.dynamic-grid-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dynamic-grid-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dynamic-grid-page-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dynamic-grid-page-button {
  border: 1px solid rgba(154, 181, 220, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dynamic-grid-page-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 27, 52, 0.08);
}

.dynamic-grid-page-button.is-active {
  background: linear-gradient(135deg, rgba(0, 240, 192, 0.18), rgba(39, 179, 255, 0.2));
  color: #0c2746;
  border-color: rgba(39, 179, 255, 0.34);
}

.dynamic-grid-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dynamic-grid-mount {
  min-height: 220px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.gridjs-modern-shell.gridjs-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(195, 214, 243, 0.68);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(250, 252, 255, 0.9);
  box-shadow: 0 16px 30px rgba(12, 27, 52, 0.06);
}

.gridjs-modern-shell .gridjs-wrapper {
  max-width: 100%;
  border: 0;
  box-shadow: none;
  overflow: auto;
}

.gridjs-modern-shell .gridjs-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink);
  table-layout: auto;
}

.gridjs-modern-shell th {
  background: linear-gradient(180deg, #f7fbff, #edf5fe);
  color: #45617c;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(195, 214, 243, 0.8);
}

.gridjs-modern-shell td {
  padding: 12px;
  vertical-align: middle;
  border-top: 1px solid rgba(225, 236, 250, 0.86);
  background: rgba(255, 255, 255, 0.7);
}

.gridjs-modern-shell tr:hover td {
  background: rgba(232, 244, 255, 0.8);
}

.gridjs-modern-shell td:first-child,
.gridjs-modern-shell th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.gridjs-modern-shell td:first-child {
  font-weight: 600;
  color: var(--ink);
  background: rgba(244, 249, 255, 0.98);
}

.gridjs-modern-shell th:first-child {
  z-index: 2;
}

.gridjs-modern-shell thead th:nth-child(2n + 3),
.gridjs-modern-shell tbody td:nth-child(2n + 3) {
  background: #cecece !important;
}

.gridjs-modern-shell tbody tr:hover td:nth-child(2n + 3) {
  background: #cecece !important;
}

.gridjs-modern-shell .gridjs-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(195, 214, 243, 0.68);
  background: rgba(247, 251, 255, 0.88);
}

.gridjs-modern-shell .gridjs-footer:empty {
  display: none;
}

.gridjs-modern-shell .gridjs-pagination .gridjs-pages button {
  border-radius: 12px;
  border: 1px solid rgba(154, 181, 220, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.gridjs-modern-shell .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
  background: linear-gradient(135deg, rgba(0, 240, 192, 0.18), rgba(39, 179, 255, 0.2));
  color: #0c2746;
  border-color: rgba(39, 179, 255, 0.34);
}

.gridjs-modern-shell .gridjs-summary {
  color: var(--ink-soft);
}

.metric-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.section-title p,
.section-hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.transposed-section-title {
  margin-bottom: 16px;
}

.transposed-section-heading {
  margin: 0;
  display: inline-flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 700;
}

.transposed-section-heading i {
  font-size: 0.95rem;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
}

.export-actions .form-submit-button {
  min-width: 210px;
  margin-top: 0;
}

.status-panel {
  margin-bottom: 18px;
  text-align: center;
  font-weight: 600;
}

.status-panel-toolbar {
  margin-bottom: 0;
  min-width: 320px;
  max-width: 420px;
  padding: 0.95rem 1.2rem;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(12, 27, 52, 0.1);
}

.form-submit-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.form-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-builder-actions .btn {
  width: 180px;
  min-width: 180px;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.form-builder-actions .btn i {
  font-size: 0.95rem;
}

.admin-download-row {
  justify-content: center;
}

.form-submit-button {
  min-width: 180px;
  padding: 0.9rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0, 179, 219, 0.22);
}

.admin-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit-button:hover {
  background: linear-gradient(135deg, #123b6b, #0c2746);
  color: #f7fbff;
  box-shadow: 0 18px 32px rgba(12, 39, 70, 0.28);
}

.form-submit-button:active {
  background: linear-gradient(135deg, #0f3158, #091d35);
  color: #f7fbff;
}

#clearForm:hover,
#clearForm:focus {
  background: linear-gradient(135deg, #dc3545, #b02a37);
  border-color: #b02a37;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18), 0 18px 32px rgba(176, 42, 55, 0.24);
}

#clearForm:active {
  background: linear-gradient(135deg, #bb2d3b, #8f1f2d);
  border-color: #8f1f2d;
  color: #fff;
}

.form-submit-button i {
  font-size: 0.95rem;
}

.alert {
  border: 1px solid transparent;
  border-radius: 18px;
}

.alert-info {
  background: rgba(39, 179, 255, 0.12);
  border-color: rgba(39, 179, 255, 0.2);
  color: #0a5374;
}

.alert-success {
  background: rgba(18, 116, 83, 0.22);
  border-color: rgba(18, 116, 83, 0.4);
  color: #0a4f39;
}

.alert-danger,
.alert-warning {
  color: #6b4c00;
}

.btn {
  border-radius: 16px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary,
.btn-success {
  border: none;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #031018;
  box-shadow: 0 16px 28px rgba(0, 179, 219, 0.2);
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-primary {
  border-width: 1px;
}

.form-control,
.form-select,
.form-control-color,
.form-range {
  border-radius: 14px;
}

.form-control,
.form-select,
.form-control-color {
  border: 1px solid rgba(139, 167, 211, 0.36);
  background: rgba(255, 255, 255, 0.88);
  min-height: 48px;
}

.form-select {
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23122033' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

.form-control:focus,
.form-select:focus,
.form-control-color:focus {
  border-color: rgba(39, 179, 255, 0.52);
  box-shadow: 0 0 0 0.25rem rgba(39, 179, 255, 0.15);
}

.form-check {
  margin-bottom: 0.7rem;
}

.form-check-input[type="radio"] {
  --bs-form-check-bg: #9ffdb3;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border: var(--bs-border-width) solid #263e56;
  background-color: var(--bs-form-check-bg);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.form-check-input[type="radio"]:checked {
  background-color: #123b6b;
  border-color: #123b6b;
}

.form-check-input[type="radio"]:focus {
  border-color: #123b6b;
  box-shadow: 0 0 0 0.2rem rgba(18, 59, 107, 0.16), inset 0 0 0 2px #ffffff;
}

.form-check-label {
  color: var(--ink);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-summary-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  width: min(100%, 620px);
}

.admin-summary-toolbar .status-summary-card {
  height: 100%;
}

.calendar-toolbar .form-select {
  width: 140px;
}

.calendar-month {
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 222, 255, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(10, 18, 38, 0.08);
}

.calendar-month .card-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #0d1b33, #173c56) !important;
}

.calendar-table th,
.calendar-table td {
  width: 2.5em;
  height: 2.85em;
  text-align: center;
  vertical-align: middle;
}

.calendar-table td {
  border-color: rgba(201, 220, 255, 0.65);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calendar-day-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.calendar-day-number {
  font-weight: 600;
  line-height: 1;
}

.calendar-day-cell {
  padding: 0.3rem 0.15rem !important;
}

.calendar-table td:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(39, 179, 255, 0.16);
}

.weekday-header th {
  font-size: 0.76rem;
  color: #789;
  background: #f6fbff !important;
}

.not-exist { background: rgba(18, 32, 51, 0.06) !important; }
.workday { background: rgba(68, 160, 91, 0.34) !important; }
.holiday { background: rgba(194, 84, 84, 0.26) !important; }
.today { outline: 2px solid var(--accent-b) !important; font-weight: bold; }

.editable-day {
  cursor: pointer;
}

.open-interval-editor {
  padding: 0.05rem 0.28rem;
  line-height: 1;
  border-radius: 999px;
  font-size: 0.72rem;
  border-color: rgba(18, 59, 107, 0.26);
  color: #123b6b;
  background: rgba(255, 255, 255, 0.52);
}

.open-interval-editor:hover {
  background: #123b6b;
  border-color: #123b6b;
  color: #f7fbff;
}

.open-interval-viewer {
  padding: 0.05rem 0.28rem;
  line-height: 1;
  border-radius: 999px;
  font-size: 0.72rem;
  border-color: rgba(18, 59, 107, 0.26);
  color: #123b6b;
  background: rgba(255, 255, 255, 0.52);
}

.open-interval-viewer:hover {
  background: #123b6b;
  border-color: #123b6b;
  color: #f7fbff;
}

.interval-readonly-list {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.interval-readonly-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: min(100%, 260px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(18, 32, 51, 0.04);
  border: 1px solid rgba(154, 181, 220, 0.26);
}

.interval-readonly-item i {
  color: #123b6b;
}

.interval-readonly-empty {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(18, 32, 51, 0.04);
  color: var(--ink-soft);
  text-align: center;
}

.interval-readonly-header,
.interval-readonly-body,
.interval-readonly-footer {
  justify-content: center;
  text-align: center;
}

.interval-readonly-header .modal-title {
  width: 100%;
  text-align: center;
}

.interval-readonly-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.interval-readonly-footer {
  justify-content: center;
}

.admin-interval-body {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.admin-interval-list {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.admin-interval-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 320px);
}

.admin-interval-time {
  max-width: 118px;
  text-align: center;
}

.admin-interval-add-button {
  min-width: 220px;
}

.admin-interval-add-button:hover {
  background: #123b6b !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #123b6b !important;
}

.admin-interval-footer {
  justify-content: center;
  gap: 10px;
}

.admin-interval-save-button {
  min-width: 180px;
}

.form-builder-sidebar,
.form-builder-main {
  height: 100%;
  padding: 24px;
}

.field-item,
.draggable-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(18, 32, 51, 0.04);
  border: 1px solid rgba(170, 198, 236, 0.4);
  cursor: grab;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.field-item:hover,
.draggable-field:hover {
  transform: translateX(4px);
  border-color: rgba(39, 179, 255, 0.35);
  box-shadow: 0 12px 26px rgba(9, 17, 34, 0.08);
}

.form-preview {
  min-height: 340px;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(39, 179, 255, 0.35);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.96), rgba(232, 243, 255, 0.86));
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-panel {
  width: min(480px, 100%);
  overflow: hidden;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.login-aside {
  padding: 34px;
  background: linear-gradient(145deg, rgba(11, 19, 38, 0.98), rgba(24, 43, 68, 0.92));
  color: var(--text-main);
}

.login-form-wrap {
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
}

.login-submit-button:hover {
  background: #123b6b !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #123b6b !important;
}

.login-heading-block {
  justify-content: center;
  text-align: center;
}

.login-heading-block > div {
  width: 100%;
}

.login-heading-block .login-brand-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.login-heading-block .login-brand-subtitle {
  margin-top: 0;
}

.login-aside .hero-list i {
  color: var(--accent-c);
}

.modal-content {
  border-radius: 22px;
  border: 1px solid rgba(196, 217, 255, 0.6);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  background: #f8fbff;
}

@media (max-width: 1199px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

  .app-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 991px) {
  .hero-grid,
  .form-grid,
  .login-grid,
  .app-topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .app-topbar {
    padding: 24px;
  }

  .app-content {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .app-shell {
    padding: 14px;
    gap: 14px;
  }

  .app-sidebar,
  .app-topbar,
  .app-content,
  .hero-card,
  .content-card,
  .calendar-toolbar,
  .login-form-wrap,
  .login-aside,
  .form-builder-sidebar,
  .form-builder-main {
    padding: 18px;
  }

  .app-nav {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-summary-toolbar {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .calendar-toolbar .form-select {
    width: 100%;
  }

  .status-panel-toolbar {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .form-submit-row {
    justify-content: stretch;
  }

  .form-submit-button {
    width: 100%;
  }
}