:root {
  --skm-primary: #0f766e;
  --skm-primary-dark: #0b5f59;
  --skm-primary-soft: #e7f7f4;
  --skm-secondary: #14b8a6;
  --skm-accent: #f59e0b;
  --skm-ink: #173b38;
  --skm-muted: #64748b;
  --skm-border: #dce9e7;
  --skm-surface: #ffffff;
  --skm-bg: #f3f8f7;
  --skm-danger: #dc3545;
  --skm-radius: 18px;
  --skm-shadow: 0 16px 40px rgba(22, 78, 72, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--skm-ink);
  background: var(--skm-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Public */
.public-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(15,118,110,.10), transparent 30%),
    var(--skm-bg);
}
.public-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.public-nav { padding: 1rem 0; }
.public-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.public-brand-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; background: #fff; padding: .3rem; box-shadow: 0 8px 22px rgba(15,118,110,.12); }
.public-brand-copy strong { display: block; font-size: .95rem; color: var(--skm-ink); }
.public-brand-copy span { color: var(--skm-muted); font-size: .72rem; }
.public-admin-link { text-decoration: none; color: var(--skm-primary); font-weight: 700; font-size: .8rem; }
.public-admin-link:hover { color: var(--skm-primary-dark); }

.public-hero { padding: 2rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 2rem; align-items: center; }
.hero-copy { padding: 1.5rem 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .72rem; border-radius: 999px; background: var(--skm-primary-soft); color: var(--skm-primary); font-size: .72rem; font-weight: 800; }
.hero-title { margin: 1rem 0 .85rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 850; }
.hero-title span { color: var(--skm-primary); }
.hero-desc { max-width: 620px; color: var(--skm-muted); font-size: .98rem; line-height: 1.75; }
.hero-points { display: grid; gap: .7rem; margin-top: 1.4rem; }
.hero-point { display: flex; align-items: flex-start; gap: .7rem; color: #385b57; font-size: .82rem; }
.hero-point i { color: var(--skm-primary); margin-top: .12rem; }

.public-card { background: rgba(255,255,255,.96); border: 1px solid rgba(202,224,220,.9); border-radius: 24px; box-shadow: var(--skm-shadow); }
.form-panel { padding: 1.4rem; }
.form-panel-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.15rem; }
.form-panel-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: var(--skm-primary-soft); color: var(--skm-primary); font-size: 1.1rem; }
.form-panel-head h1, .form-panel-head h2 { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 820; }
.form-panel-head p { margin: 0; color: var(--skm-muted); font-size: .74rem; line-height: 1.55; }

.form-label { color: #294b47; font-weight: 700; font-size: .77rem; margin-bottom: .42rem; }
.required { color: #dc3545; }
.form-control, .form-select {
  min-height: 48px;
  border: 1px solid #cddfdd;
  border-radius: 13px;
  color: var(--skm-ink);
  font-size: .86rem;
  background-color: #fff;
}
.form-control::placeholder { color: #9caeac; }
.form-control:focus, .form-select:focus { border-color: #56b8ae; box-shadow: 0 0 0 .22rem rgba(20,184,166,.14); }
textarea.form-control { min-height: 110px; }
.form-text { color: var(--skm-muted); font-size: .68rem; }
.public-btn { min-height: 48px; border-radius: 13px; font-size: .84rem; font-weight: 780; }
.btn-skm { color: #fff; background: linear-gradient(135deg, var(--skm-primary), var(--skm-secondary)); border: 0; box-shadow: 0 9px 20px rgba(15,118,110,.20); }
.btn-skm:hover, .btn-skm:focus { color: #fff; background: linear-gradient(135deg, var(--skm-primary-dark), var(--skm-primary)); transform: translateY(-1px); }
.btn-outline-skm { color: var(--skm-primary); border-color: #91cfc8; background: #fff; }
.btn-outline-skm:hover { color: #fff; background: var(--skm-primary); border-color: var(--skm-primary); }

.public-footer { padding: 1.4rem 0 2rem; color: var(--skm-muted); font-size: .7rem; text-align: center; }

.survey-header { padding: 1rem 0 .6rem; }
.survey-container { width: min(780px, calc(100% - 1.4rem)); margin-inline: auto; }
.survey-progress-wrap { position: sticky; top: 0; z-index: 30; padding: .55rem 0; background: rgba(243,248,247,.92); backdrop-filter: blur(12px); }
.survey-progress-card { padding: .7rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--skm-border); box-shadow: 0 8px 22px rgba(22,78,72,.06); }
.survey-progress-meta { display: flex; justify-content: space-between; gap: .8rem; color: var(--skm-muted); font-size: .68rem; margin-bottom: .45rem; }
.survey-progress-meta strong { color: var(--skm-ink); }
.progress { height: 7px; background: #e5efed; }
.progress-bar { background: linear-gradient(90deg, var(--skm-primary), var(--skm-secondary)); }
.survey-main { padding: .9rem 0 2.5rem; }
.service-card { padding: 1.15rem; margin-bottom: 1rem; }
.question-card { padding: 1.15rem; margin-bottom: .85rem; }
.question-number { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--skm-primary-soft); color: var(--skm-primary); font-weight: 850; font-size: .72rem; margin-bottom: .65rem; }
.question-text { margin: 0 0 .85rem; color: var(--skm-ink); font-size: .88rem; font-weight: 760; line-height: 1.55; }
.option-list { display: grid; gap: .55rem; }
.option-radio { position: absolute; opacity: 0; pointer-events: none; }
.option-label { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .72rem .8rem; border: 1px solid #d4e2e0; border-radius: 13px; background: #fff; cursor: pointer; color: #385653; font-size: .78rem; transition: .16s ease; }
.option-label:hover { border-color: #8dcac3; background: #f8fcfb; }
.option-letter { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 8px; background: #edf5f4; color: #4d6d69; font-weight: 800; }
.option-radio:checked + .option-label { border-color: var(--skm-primary); background: var(--skm-primary-soft); box-shadow: inset 0 0 0 1px rgba(15,118,110,.08); color: var(--skm-primary-dark); font-weight: 700; }
.option-radio:checked + .option-label .option-letter { color: #fff; background: var(--skm-primary); }
.survey-submit-sticky { position: sticky; bottom: .7rem; z-index: 20; padding-top: .7rem; }
.survey-submit-box { display: flex; gap: .65rem; padding: .7rem; border: 1px solid var(--skm-border); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 12px 28px rgba(22,78,72,.14); backdrop-filter: blur(12px); }

.success-page { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.success-card { width: min(440px, 100%); padding: 2rem 1.5rem; text-align: center; }
.success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 22px; background: #dcfce7; color: #15803d; font-size: 2rem; }
.success-card h1 { font-size: 1.35rem; font-weight: 850; }
.success-card p { color: var(--skm-muted); font-size: .8rem; line-height: 1.65; }

/* Admin */
.admin-body { min-height: 100vh; background: #f4f7f7; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 1030; padding: 1.1rem .85rem; background: #0f3431; color: #d9eeeb; overflow-y: auto; }
.admin-sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: .35rem .45rem 1.1rem; text-decoration: none; color: #fff; }
.admin-sidebar-brand img { width: 45px; height: 45px; object-fit: contain; border-radius: 13px; background: #fff; padding: .25rem; }
.admin-sidebar-brand strong { display: block; font-size: .88rem; }
.admin-sidebar-brand span { display: block; color: #9fc4bf; font-size: .65rem; }
.admin-nav-label { padding: .8rem .65rem .4rem; color: #7facA6; font-size: .61rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.admin-nav { display: grid; gap: .25rem; }
.admin-nav-link { display: flex; align-items: center; gap: .7rem; padding: .72rem .75rem; border-radius: 11px; color: #c5dedb; text-decoration: none; font-size: .76rem; font-weight: 650; }
.admin-nav-link i { width: 19px; text-align: center; font-size: .95rem; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav-link.active { color: #0f3431; background: #dff7f3; }
.admin-sidebar-foot { margin-top: 1rem; padding: .8rem; border-radius: 13px; background: rgba(255,255,255,.06); color: #9fc4bf; font-size: .65rem; line-height: 1.55; }

.admin-topbar { position: sticky; top: 0; z-index: 1020; margin-left: 260px; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.4rem; border-bottom: 1px solid #e1ebe9; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.admin-page-title { margin: 0; font-size: 1rem; font-weight: 820; }
.admin-page-subtitle { margin: .18rem 0 0; color: var(--skm-muted); font-size: .68rem; }
.admin-main { margin-left: 260px; padding: 1.35rem; }
.admin-content { width: min(1440px, 100%); margin-inline: auto; }
.mobile-menu-btn { display: none; }

.admin-card { border: 1px solid #e1ebe9; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(22,78,72,.05); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid #edf2f1; }
.admin-card-title { margin: 0; font-size: .88rem; font-weight: 800; }
.admin-card-subtitle { margin: .2rem 0 0; color: var(--skm-muted); font-size: .67rem; }
.admin-card-body { padding: 1.1rem; }
.stat-card { position: relative; height: 100%; overflow: hidden; padding: 1rem; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: rgba(15,118,110,.07); }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--skm-primary-soft); color: var(--skm-primary); font-size: 1.05rem; }
.stat-label { margin-top: .85rem; color: var(--skm-muted); font-size: .67rem; }
.stat-value { margin: .18rem 0 0; font-size: 1.65rem; line-height: 1; font-weight: 850; }
.stat-note { margin-top: .42rem; color: #5f7b78; font-size: .64rem; }

.quick-action { display: flex; align-items: center; gap: .8rem; min-height: 86px; padding: .9rem; border: 1px solid #e1ebe9; border-radius: 15px; background: #fff; text-decoration: none; transition: .16s ease; }
.quick-action:hover { transform: translateY(-2px); border-color: #a8d5d0; box-shadow: 0 10px 24px rgba(22,78,72,.08); }
.quick-action-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 13px; background: var(--skm-primary-soft); color: var(--skm-primary); }
.quick-action strong { display: block; font-size: .77rem; }
.quick-action span { display: block; margin-top: .2rem; color: var(--skm-muted); font-size: .64rem; line-height: 1.45; }

.table-modern { margin: 0; font-size: .72rem; }
.table-modern thead th { padding: .75rem .72rem; border-bottom: 1px solid #dfeae8; background: #f4f9f8; color: #42615d; font-size: .64rem; font-weight: 820; letter-spacing: .02em; white-space: nowrap; }
.table-modern tbody td { padding: .75rem .72rem; border-color: #edf2f1; vertical-align: middle; }
.table-modern tbody tr:hover { background: #fbfdfd; }
.table-modern .btn { min-width: 34px; border-radius: 9px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid #cddfdd !important; border-radius: 10px !important; padding: .4rem .55rem !important; }

.filter-card { padding: 1rem; }
.badge-soft-success { color: #157347; background: #dff7e8; }
.badge-soft-primary { color: #0d6efd; background: #e6efff; }
.badge-soft-warning { color: #8a5d00; background: #fff0c7; }
.badge-soft-danger { color: #b02a37; background: #ffe4e8; }
.badge-soft-secondary { color: #526563; background: #e9efee; }
.badge-soft { display: inline-flex; align-items: center; padding: .38rem .58rem; border-radius: 999px; font-size: .63rem; font-weight: 800; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.info-item { padding: .8rem; border: 1px solid #e3ecea; border-radius: 13px; background: #fbfdfd; }
.info-item span { display: block; color: var(--skm-muted); font-size: .62rem; }
.info-item strong { display: block; margin-top: .22rem; font-size: .76rem; overflow-wrap: anywhere; }
.feedback-box { padding: 1rem; border-left: 4px solid var(--skm-accent); border-radius: 12px; background: #fff8e7; color: #5d4a1d; font-size: .76rem; line-height: 1.65; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; background: linear-gradient(135deg, #0f3431 0%, #0f766e 55%, #14b8a6 100%); }
.login-shell { width: min(920px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.login-visual { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem; color: #fff; background: radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 32%), #0f4f49; }
.login-visual img { width: 105px; height: 105px; object-fit: contain; border-radius: 24px; background: rgba(255,255,255,.96); padding: .45rem; }
.login-visual h1 { margin: 1.2rem 0 .6rem; font-size: 2rem; line-height: 1.15; font-weight: 850; }
.login-visual p { max-width: 410px; color: #c4e7e2; font-size: .8rem; line-height: 1.7; }
.login-panel { display: flex; align-items: center; padding: 2.2rem; }
.login-form { width: 100%; }
.login-form h2 { margin: 0; font-size: 1.35rem; font-weight: 850; }
.login-form > p { margin: .35rem 0 1.35rem; color: var(--skm-muted); font-size: .75rem; }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .admin-sidebar { display: none; }
  .admin-topbar, .admin-main { margin-left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .offcanvas-admin { background: #0f3431; color: #d9eeeb; }
  .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
  .public-shell { width: min(100% - 1.2rem, 1180px); }
  .public-nav { padding-top: .7rem; }
  .public-brand-copy span { display: none; }
  .public-admin-link span { display: none; }
  .public-hero { padding-top: 1rem; }
  .hero-title { font-size: 2.15rem; }
  .hero-desc { font-size: .86rem; }
  .form-panel { padding: 1rem; }
  .admin-topbar { padding: .7rem .85rem; }
  .admin-main { padding: .9rem; }
  .admin-card-header { align-items: flex-start; flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { padding: 1.35rem; min-height: 520px; }
}

@media (max-width: 420px) {
  .survey-submit-box { flex-direction: column; }
  .survey-submit-box .btn { width: 100%; }
  .admin-page-subtitle { display: none; }
}

/* Dashboard dan laporan IKM dinamis */
.dashboard-filter { position: sticky; top: 78px; z-index: 15; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(22,78,72,.08); }
.chart-area-md { height: 250px; }
.chart-area-lg { height: 330px; }
.chart-area-xl { height: 420px; }
.chart-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .62rem; border-radius: 999px; color: var(--skm-primary); background: var(--skm-primary-soft); font-size: .63rem; font-weight: 800; }
.priority-number, .rank-pill { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; font-size: .7rem; font-weight: 850; }
.priority-number { color: #9a6700; background: #fff0c7; }
.rank-pill { color: var(--skm-primary); background: var(--skm-primary-soft); }
.insight-panel { margin: 0 1.1rem 1.1rem; padding: .9rem; border: 1px solid #d9ebe8; border-radius: 14px; background: linear-gradient(135deg,#f2fbf9,#fff); }
.insight-panel span, .insight-panel small { display: block; color: var(--skm-muted); font-size: .64rem; }
.insight-panel strong { display: block; margin: .25rem 0; font-size: .86rem; }

.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.35rem; overflow: hidden; background: linear-gradient(135deg,#0f3431,#0f766e); color: #fff; }
.report-hero h2 { margin: .25rem 0 .2rem; font-size: 1.35rem; font-weight: 850; }
.report-hero p { margin: 0; color: #cde9e5; font-size: .75rem; }
.report-eyebrow { display: block; color: #95d5cd; font-size: .62rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.report-score { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.1); }
.report-score span { font-size: .68rem; color: #cde9e5; }
.report-score strong { font-size: 1.75rem; line-height: 1; }
.report-score em { font-style: normal; white-space: nowrap; }
.analysis-callout { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid #d7e9e6; border-radius: 16px; background: linear-gradient(135deg,#edf9f7,#fff); }
.analysis-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; background: var(--skm-primary); color: #fff; }
.analysis-callout strong { font-size: .8rem; }
.analysis-callout p { margin: .28rem 0 0; color: #4c6965; font-size: .74rem; line-height: 1.65; }
.question-cell { min-width: 340px; white-space: normal; line-height: 1.45; }
.report-list .list-group-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-color: #edf2f1; }
.report-list strong { display: block; font-size: .76rem; }
.report-list small { display: block; margin-top: .18rem; color: var(--skm-muted); font-size: .63rem; }
.report-list b { font-size: .82rem; color: var(--skm-primary); }
.export-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.export-feature-grid > div { padding: .9rem; border: 1px solid #e0ecea; border-radius: 14px; background: #fbfdfd; }
.export-feature-grid i { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .6rem; border-radius: 11px; background: var(--skm-primary-soft); color: var(--skm-primary); }
.export-feature-grid strong, .export-feature-grid span { display: block; }
.export-feature-grid strong { font-size: .76rem; }
.export-feature-grid span { margin-top: .2rem; color: var(--skm-muted); font-size: .64rem; line-height: 1.5; }

@media (max-width: 991.98px) {
  .dashboard-filter { position: static; }
  .chart-area-xl { height: 360px; }
  .report-hero { align-items: flex-start; }
}
@media (max-width: 767.98px) {
  .chart-area-lg, .chart-area-xl { height: 300px; }
  .chart-area-md { height: 230px; }
  .report-hero { flex-direction: column; }
  .report-score { width: 100%; justify-content: space-between; }
  .export-feature-grid { grid-template-columns: 1fr; }
  .analysis-callout { align-items: flex-start; }
}
