/*
 * dictio-test.css
 * Taruh di: wp-content/themes/NAMA-CHILD-THEME/dictio-test.css
 *
 * Tambahkan di functions.php child theme:
 *
 * function dictio_enqueue_test_assets() {
 *   if ( is_page_template( 'dictio-test-page.php' ) ) {
 *     wp_enqueue_style('tabler-icons', 'https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css', [], null);
 *     wp_enqueue_style('dictio-test', get_stylesheet_directory_uri() . '/dictio-test.css', ['tabler-icons'], '1.0');
 *   }
 * }
 * add_action('wp_enqueue_scripts', 'dictio_enqueue_test_assets');
 */

/* ── RESET & BASE ─────────────────────────────────────────── */
.dt-page * { box-sizing: border-box; }
.dt-page a { text-decoration: none; color: inherit; }
.dt-page button { font-family: inherit; cursor: pointer; border: none; background: none; }
.dt-page {
  --navy:       #1e3a5f;
  --navy-dark:  #152c48;
  --navy-acc:   #7aadd0;
  --pastel-bg:  #eef3fa;
  --muted:      #6b82a0;
  --border-c:   #ccd9ea;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--pastel-bg);
  color: var(--navy);
}

/* ── TOPBAR ───────────────────────────────────────────────── */
.dt-topbar {
  background: var(--navy);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dt-brand { display: flex; align-items: center; gap: 10px; }
.dt-brand-icon {
  width: 30px; height: 30px;
  background: #ddeaf8;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.dt-brand-name { font-size: 15px; font-weight: 600; color: #fff; }
.dt-brand-sub  { font-size: 11px; color: var(--navy-acc); margin-top: 1px; }
.dt-topbar-right { display: flex; align-items: center; gap: 12px; }
.dt-search-wrap { position: relative; }
.dt-search-wrap input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 22px;
  padding: 8px 16px 8px 38px;
  font-size: 13px; color: #fff; width: 260px; outline: none;
  font-family: inherit;
}
.dt-search-wrap input::placeholder { color: var(--navy-acc); }
.dt-search-wrap input:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.dt-search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px; color: var(--navy-acc); pointer-events: none;
}
.dt-topbar-pill {
  font-size: 11px; background: rgba(255,255,255,0.1);
  color: #c5daed; padding: 5px 12px; border-radius: 20px; white-space: nowrap;
}
.dt-mobile-search-btn { display: none; color: #c5daed; font-size: 20px; padding: 4px; }

/* ── MOBILE SEARCH BAR ────────────────────────────────────── */
.dt-mobile-search {
  display: none;
  background: var(--navy-dark);
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
}
.dt-mobile-search i { font-size: 16px; color: var(--navy-acc); flex-shrink: 0; }
.dt-mobile-search input {
  flex: 1; background: rgba(255,255,255,0.1); border: none; outline: none;
  font-size: 14px; color: #fff; font-family: inherit; padding: 6px 0;
}
.dt-mobile-search input::placeholder { color: var(--navy-acc); }

/* ── WARN STRIP ───────────────────────────────────────────── */
.dt-warn-strip {
  background: #fffbeb; border-bottom: 1px solid #f5dfa0;
  padding: 8px 24px; display: flex; align-items: center;
  gap: 8px; font-size: 12px; color: #7a5c00;
}
.dt-warn-strip strong { font-weight: 600; }

/* ── MOBILE TABS ──────────────────────────────────────────── */
.dt-mobile-tabs {
  display: none;
  background: var(--navy-dark);
  padding: 0 14px 12px;
  gap: 8px;
  overflow-x: auto;
}
.dt-mobile-tabs::-webkit-scrollbar { display: none; }
.dt-m-tab {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.1); color: #c5daed;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.dt-m-tab.active { background: #fff; color: var(--navy); border-color: #fff; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.dt-layout { display: flex; min-height: calc(100vh - 90px); }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.dt-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--navy-dark);
  padding: 20px 0;
  position: sticky; top: 90px;
  height: calc(100vh - 90px);
  overflow-y: auto;
}
.dt-sidebar::-webkit-scrollbar { width: 4px; }
.dt-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.dt-sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: #4a7096;
  padding: 0 18px; margin: 0 0 8px;
}
.dt-sidebar-label + .dt-nav-item { margin-top: 0; }

.dt-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.dt-nav-item:hover { background: rgba(255,255,255,0.05); }
.dt-nav-item.active {
  background: rgba(122,173,208,0.12);
  border-left-color: var(--navy-acc);
}
.dt-nav-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dt-nav-text { font-size: 12.5px; color: #bbd1e8; line-height: 1.3; flex: 1; }
.dt-nav-item.active .dt-nav-text { color: #fff; font-weight: 500; }
.dt-nav-count {
  font-size: 10px; padding: 2px 7px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #7aadd0; flex-shrink: 0;
}
.dt-filter-box {
  margin: 0 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 12px;
}
.dt-filter-row {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 12px; color: #bbd1e8;
}
.dt-filter-row input { accent-color: var(--navy-acc); }
.dt-filter-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.dt-sidebar-stats {
  display: flex; gap: 8px; padding: 16px 14px 0;
}
.dt-s-stat {
  flex: 1; background: rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px; text-align: center;
}
.dt-s-num { font-size: 20px; font-weight: 700; color: #fff; display: block; }
.dt-s-lbl { font-size: 10px; color: #7aadd0; margin-top: 2px; display: block; }

/* ── MAIN ─────────────────────────────────────────────────── */
.dt-main { flex: 1; min-width: 0; padding: 24px 28px; overflow: auto; }

.dt-search-note {
  font-size: 13px; color: var(--muted);
  padding: 0 0 14px; display: none;
}

/* ── GRUP SECTION ─────────────────────────────────────────── */
.dt-grup-section { display: none; }
.dt-grup-section.active { display: block; }

/* ── PAGE HEAD ────────────────────────────────────────────── */
.dt-page-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.dt-page-title { font-size: 22px; font-weight: 700; color: var(--navy); }
.dt-page-sub   { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dt-warn-pill  {
  display: flex; align-items: center; gap: 7px;
  background: #fffbeb; border: 1px solid #f5dfa0;
  border-radius: 10px; padding: 7px 12px;
  font-size: 11.5px; color: #7a5c00; flex-shrink: 0;
}

/* ── STATS ROW ────────────────────────────────────────────── */
.dt-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; margin-bottom: 24px;
}
.dt-stat-card {
  background: #fff; border: 1px solid var(--border-c);
  border-radius: 12px; padding: 14px 16px;
}
.dt-stat-num  { font-size: 26px; font-weight: 700; display: block; }
.dt-stat-lbl  { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }
.dt-stat-hint { font-size: 10px; color: #a8c4e0; margin-top: 1px; display: block; }

/* ── SUB SECTION ──────────────────────────────────────────── */
.dt-sub-section { margin-bottom: 28px; }
.dt-sub-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.dt-sub-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dt-sub-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.dt-sub-count { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── CARD GRID (desktop) ──────────────────────────────────── */
.dt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.dt-card {
  background: #fff; border: 1px solid var(--border-c);
  border-top: 2.5px solid #2a9d6e;
  border-radius: 12px; padding: 14px 15px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s, transform 0.1s;
}
.dt-card:hover { border-color: var(--navy-acc); transform: translateY(-1px); }
.dt-card-name { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.dt-card-desc {
  font-size: 11.5px; color: var(--muted); line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-card-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 4px;
}
.dt-cbadge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 500; padding: 3px 8px; border-radius: 8px;
}

/* ── MOBILE LIST ──────────────────────────────────────────── */
.dt-mobile-list { display: none; flex-direction: column; gap: 6px; margin-top: 10px; }
.dt-m-item {
  display: flex; align-items: center; padding: 10px 12px;
  border-radius: 10px; background: #f7f9fc;
  border: 1px solid var(--border-c); gap: 9px;
}
.dt-m-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dt-m-text { flex: 1; min-width: 0; }
.dt-m-name { font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.dt-empty { text-align: center; padding: 60px 24px; }
.dt-empty i { font-size: 48px; color: var(--border-c); display: block; margin-bottom: 16px; }
.dt-empty p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── FOOTER ───────────────────────────────────────────────── */
.dt-footer {
  text-align: center; padding: 24px;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--border-c); background: #fff;
}

/* ══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dt-stats-row { grid-template-columns: repeat(2,1fr); }
  .dt-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dt-page-head .dt-warn-pill { display: none; }
}

@media (max-width: 768px) {
  .dt-topbar-right { display: none; }
  .dt-mobile-search-btn { display: block; }
  .dt-mobile-tabs { display: flex; }
  .dt-sidebar { display: none; }
  .dt-main { padding: 14px; }
  .dt-warn-strip { display: none; }
  .dt-stats-row { display: none; }
  .dt-cards-grid { display: none; }
  .dt-mobile-list { display: flex; }
  .dt-page-title { font-size: 17px; }
  .dt-page-sub   { font-size: 12px; }
  .dt-page-head  { margin-bottom: 12px; }
  .dt-sub-head   { margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .dt-page-title { font-size: 15px; }
}
