/* ==========================================================================
   SC Universitas Dashboard — Dashboard CMS Universitas
   Karya sharecode.id — https://sharecode.id
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --uc-primary: #1e40af;
  --uc-primary-rgb: 30, 64, 175;
  --uc-accent: #f59e0b;
  --uc-sidebar-bg: #0f1d3a;
  --uc-sidebar-text: #a9b6d3;
  --uc-sidebar-active: #ffffff;
  --uc-sidebar-w: 264px;
  --uc-sidebar-w-collapsed: 76px;
  --uc-topbar-h: 64px;
  --uc-body-bg: #f3f5fa;
  --uc-border: #e5e9f2;
  --uc-muted: #6b7690;
  --uc-radius: .75rem;
  --uc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --bs-primary: var(--uc-primary);
  --bs-primary-rgb: var(--uc-primary-rgb);
  --bs-link-color: var(--uc-primary);
  --bs-link-color-rgb: var(--uc-primary-rgb);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .9rem;
  --bs-body-color: #1f2937;
}

body { background: var(--uc-body-bg); }
a { text-decoration: none; }
.btn-primary { --bs-btn-bg: var(--uc-primary); --bs-btn-border-color: var(--uc-primary); --bs-btn-hover-bg: rgba(var(--uc-primary-rgb), .88); --bs-btn-hover-border-color: rgba(var(--uc-primary-rgb), .88); --bs-btn-active-bg: rgba(var(--uc-primary-rgb), .8); --bs-btn-active-border-color: rgba(var(--uc-primary-rgb), .8); --bs-btn-disabled-bg: var(--uc-primary); --bs-btn-disabled-border-color: var(--uc-primary); }
.btn-outline-primary { --bs-btn-color: var(--uc-primary); --bs-btn-border-color: var(--uc-primary); --bs-btn-hover-bg: var(--uc-primary); --bs-btn-hover-border-color: var(--uc-primary); --bs-btn-active-bg: var(--uc-primary); --bs-btn-active-border-color: var(--uc-primary); }
.text-primary { color: var(--uc-primary) !important; }
.bg-primary { background-color: var(--uc-primary) !important; }
.bg-primary-subtle { background-color: rgba(var(--uc-primary-rgb), .1) !important; }
.border-primary { border-color: var(--uc-primary) !important; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--uc-primary-rgb), .5); box-shadow: 0 0 0 .2rem rgba(var(--uc-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--uc-primary); border-color: var(--uc-primary); }
.nav-pills .nav-link.active { background: var(--uc-primary); }
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .35rem; }
.form-text { font-size: .78rem; }
.required::after { content: " *"; color: #dc3545; }
.small-muted { font-size: .8rem; color: var(--uc-muted); }
.fw-600 { font-weight: 600; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Layout ---------- */
.uc-wrapper { display: flex; min-height: 100vh; }
.uc-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  width: var(--uc-sidebar-w); background: var(--uc-sidebar-bg); color: var(--uc-sidebar-text);
  display: flex; flex-direction: column; transition: width .2s ease, transform .25s ease;
}
.uc-main { flex: 1; min-width: 0; margin-left: var(--uc-sidebar-w); transition: margin .2s ease; display: flex; flex-direction: column; min-height: 100vh; }
.uc-content { padding: 1.5rem; flex: 1; }
.uc-footer { padding: 1rem 1.5rem; font-size: .8rem; color: var(--uc-muted); border-top: 1px solid var(--uc-border); background: #fff; }

.uc-brand { height: var(--uc-topbar-h); display: flex; align-items: center; gap: .7rem; padding: 0 1.15rem; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.uc-brand img { width: 38px; height: 38px; flex-shrink: 0; }
.uc-brand-text { line-height: 1.15; white-space: nowrap; overflow: hidden; }
.uc-brand-text strong { color: #fff; font-size: .95rem; display: block; }
.uc-brand-text span { font-size: .72rem; color: var(--uc-sidebar-text); }

.uc-nav { flex: 1; overflow-y: auto; padding: .75rem .65rem 1.5rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.uc-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7fa3; padding: 1rem .75rem .4rem; white-space: nowrap; font-weight: 600; }
.uc-nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: .55rem;
  color: var(--uc-sidebar-text); font-weight: 500; white-space: nowrap; position: relative; margin-bottom: 2px;
}
.uc-nav-link i { font-size: 1.1rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.uc-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.uc-nav-link.active { background: var(--uc-primary); color: var(--uc-sidebar-active); box-shadow: 0 4px 12px rgba(var(--uc-primary-rgb), .35); }
.uc-nav-link .badge { margin-left: auto; font-size: .68rem; }
.uc-nav-link .caret { margin-left: auto; font-size: .75rem; transition: transform .2s; }
.uc-nav-link[aria-expanded="true"] .caret { transform: rotate(90deg); }
.uc-subnav { padding-left: 2.05rem; }
.uc-subnav .uc-nav-link { padding: .4rem .75rem; font-size: .85rem; }
.uc-subnav .uc-nav-link.active { background: rgba(255,255,255,.08); box-shadow: none; color: #fff; }
.uc-subnav .uc-nav-link.active::before { content: ""; position: absolute; left: -.6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--uc-accent); }
.uc-sidebar-foot { padding: .9rem 1rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .75rem; white-space: nowrap; overflow: hidden; }

/* Collapsed (desktop) */
@media (min-width: 992px) {
  body.sidebar-collapsed .uc-sidebar { width: var(--uc-sidebar-w-collapsed); }
  body.sidebar-collapsed .uc-main { margin-left: var(--uc-sidebar-w-collapsed); }
  body.sidebar-collapsed .uc-brand-text,
  body.sidebar-collapsed .uc-nav-label,
  body.sidebar-collapsed .uc-nav-link span,
  body.sidebar-collapsed .uc-nav-link .badge,
  body.sidebar-collapsed .uc-nav-link .caret,
  body.sidebar-collapsed .uc-sidebar-foot { display: none; }
  body.sidebar-collapsed .uc-subnav { display: none !important; }
  body.sidebar-collapsed .uc-nav-link { justify-content: center; }
  body.sidebar-collapsed .uc-brand { justify-content: center; padding: 0; }
  /* Hover-expand saat collapsed */
  body.sidebar-collapsed .uc-sidebar:hover { width: var(--uc-sidebar-w); box-shadow: 8px 0 24px rgba(0,0,0,.2); }
  body.sidebar-collapsed .uc-sidebar:hover .uc-brand-text,
  body.sidebar-collapsed .uc-sidebar:hover .uc-nav-label,
  body.sidebar-collapsed .uc-sidebar:hover .uc-nav-link span,
  body.sidebar-collapsed .uc-sidebar:hover .uc-nav-link .badge,
  body.sidebar-collapsed .uc-sidebar:hover .uc-nav-link .caret,
  body.sidebar-collapsed .uc-sidebar:hover .uc-sidebar-foot { display: initial; }
  body.sidebar-collapsed .uc-sidebar:hover .uc-subnav.show { display: block !important; }
  body.sidebar-collapsed .uc-sidebar:hover .uc-nav-link { justify-content: flex-start; }
  body.sidebar-collapsed .uc-sidebar:hover .uc-brand { justify-content: flex-start; padding: 0 1.15rem; }
}

/* Mobile */
.uc-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; display: none; }
@media (max-width: 991.98px) {
  .uc-sidebar { transform: translateX(-100%); }
  .uc-main { margin-left: 0; }
  body.sidebar-open .uc-sidebar { transform: none; }
  body.sidebar-open .uc-backdrop { display: block; }
  .uc-content { padding: 1rem; }
}

/* ---------- Topbar ---------- */
.uc-topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--uc-topbar-h); background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--uc-border);
  display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem;
}
.uc-icon-btn {
  width: 40px; height: 40px; border-radius: .6rem; border: 0; background: transparent; color: #475569;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; position: relative;
}
.uc-icon-btn:hover, .uc-icon-btn[aria-expanded="true"] { background: #eef2f9; color: var(--uc-primary); }
.uc-icon-btn .dot { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.uc-search { max-width: 380px; flex: 1; position: relative; }
.uc-search input { padding-left: 2.3rem; background: #f3f5fa; border-color: transparent; border-radius: .6rem; }
.uc-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--uc-muted); }
.uc-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--uc-border); border-radius: .6rem; box-shadow: 0 12px 32px rgba(15,23,42,.12); max-height: 360px; overflow: auto; display: none; z-index: 10; }
.uc-search-results a { display: flex; gap: .6rem; align-items: center; padding: .55rem .85rem; color: inherit; border-bottom: 1px solid #f1f4f9; }
.uc-search-results a:hover { background: #f6f8fc; }
.uc-user-btn { display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; padding: .25rem .5rem .25rem .25rem; border-radius: .7rem; }
.uc-user-btn:hover { background: #eef2f9; }
.uc-user-btn .meta { text-align: left; line-height: 1.2; }
.uc-user-btn .meta strong { font-size: .85rem; display: block; }
.uc-user-btn .meta small { font-size: .72rem; color: var(--uc-muted); }

.dropdown-menu { border-color: var(--uc-border); box-shadow: 0 12px 32px rgba(15,23,42,.12); border-radius: .7rem; font-size: .875rem; }
.dropdown-item { padding: .45rem 1rem; }
.dropdown-item i { width: 1.25rem; margin-right: .35rem; color: var(--uc-muted); }
.uc-notif-menu { width: 370px; max-width: calc(100vw - 1.5rem); padding: 0; }
.uc-notif-menu .head { padding: .85rem 1rem; border-bottom: 1px solid var(--uc-border); display: flex; justify-content: space-between; align-items: center; }
.uc-notif-list { max-height: 380px; overflow-y: auto; }
.uc-notif-item { display: flex; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #f1f4f9; color: inherit; }
.uc-notif-item:hover { background: #f6f8fc; }
.uc-notif-item.unread { background: rgba(var(--uc-primary-rgb), .045); }
.uc-notif-item.unread .title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--uc-primary); margin-left: .4rem; vertical-align: middle; }
.uc-notif-item .title { font-weight: 600; font-size: .84rem; }
.uc-notif-item .msg { font-size: .8rem; color: #4b5563; }
.uc-notif-item .time { font-size: .72rem; color: var(--uc-muted); }
.uc-notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }

/* ---------- Page header & breadcrumb ---------- */
.uc-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.uc-page-head h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .25rem; }
.breadcrumb { font-size: .8rem; margin: 0; --bs-breadcrumb-divider: "›"; }
.breadcrumb a { color: var(--uc-muted); }
.breadcrumb-item.active { color: #111827; font-weight: 500; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--uc-border); border-radius: var(--uc-radius); box-shadow: var(--uc-shadow); }
.card-header { background: #fff; border-bottom: 1px solid var(--uc-border); padding: .9rem 1.15rem; border-radius: var(--uc-radius) var(--uc-radius) 0 0 !important; }
.card-header h2, .card-header h5, .card-title { font-size: 1rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.15rem; }

.stat-card { padding: 1.1rem 1.15rem; display: flex; flex-direction: row; gap: 1rem; align-items: center; height: 100%; }
.stat-card .ico { width: 50px; height: 50px; border-radius: .8rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .val { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.stat-card .lbl { font-size: .8rem; color: var(--uc-muted); }
.stat-card .trend { font-size: .72rem; font-weight: 600; }
.ico-blue { background: #e0e9ff; color: #1d4ed8; }
.ico-green { background: #dcfce7; color: #15803d; }
.ico-amber { background: #fef3c7; color: #b45309; }
.ico-red { background: #fee2e2; color: #b91c1c; }
.ico-purple { background: #ede9fe; color: #6d28d9; }
.ico-cyan { background: #cffafe; color: #0e7490; }
.ico-pink { background: #fce7f3; color: #be185d; }
.ico-slate { background: #e2e8f0; color: #334155; }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: #f7f9fd; font-size: .86rem; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--uc-muted); font-weight: 600; background: #f8fafc; border-bottom-width: 1px; white-space: nowrap; }
.table td { vertical-align: middle; }
table.dataTable { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.dataTables_wrapper .dataTables_length select { min-width: 4.5rem; }
.dataTables_wrapper .dataTables_info { font-size: .8rem; color: var(--uc-muted); }
.dataTables_wrapper .pagination { --bs-pagination-font-size: .82rem; --bs-pagination-active-bg: var(--uc-primary); --bs-pagination-active-border-color: var(--uc-primary); --bs-pagination-color: var(--uc-primary); }
.tbl-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: .4rem; background: #eef2f7; flex-shrink: 0; }
.tbl-title { font-weight: 600; color: #111827; }
.tbl-title:hover { color: var(--uc-primary); }
.btn-act { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.toolbar .form-select, .toolbar .form-control { width: auto; min-width: 160px; }

/* ---------- Avatars ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; font-size: .8rem; }
.avatar-sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- Status badges ---------- */
.badge { font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 50rem; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-draft { background: #f1f5f9; color: #475569; }
.st-pending { background: #fef3c7; color: #a16207; }
.st-revision { background: #ffedd5; color: #c2410c; }
.st-approved { background: #e0f2fe; color: #0369a1; }
.st-published { background: #dcfce7; color: #15803d; }
.st-rejected { background: #fee2e2; color: #b91c1c; }
.st-archived { background: #e5e7eb; color: #374151; }
.st-scheduled { background: #ede9fe; color: #6d28d9; }
.st-active { background: #dcfce7; color: #15803d; }
.st-inactive { background: #fee2e2; color: #b91c1c; }

/* ---------- Activity / timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 4px; bottom: 4px; width: 2px; background: #e8edf5; }
.timeline li { position: relative; padding: 0 0 1rem 3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-ico { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; font-size: .95rem; }
.timeline .tl-time { font-size: .74rem; color: var(--uc-muted); }

/* ---------- Workflow diagram ---------- */
.wf-steps { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; }
.wf-step { flex: 1 1 140px; background: #fff; border: 1px solid var(--uc-border); border-radius: .7rem; padding: .85rem; text-align: center; position: relative; }
.wf-step i { font-size: 1.5rem; }
.wf-step .t { font-weight: 600; font-size: .85rem; margin-top: .3rem; }
.wf-step .d { font-size: .74rem; color: var(--uc-muted); }
.wf-arrow { display: flex; align-items: center; color: #94a3b8; font-size: 1.2rem; }
@media (max-width: 767.98px) { .wf-arrow { width: 100%; justify-content: center; transform: rotate(90deg); } }

/* ---------- Upload / media ---------- */
.dropzone { border: 2px dashed #c9d3e4; border-radius: .8rem; padding: 1.5rem; text-align: center; background: #f8fafd; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--uc-primary); background: rgba(var(--uc-primary-rgb), .04); }
.dropzone i { font-size: 2rem; color: var(--uc-primary); }
.img-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: .6rem; background: #eef2f7; border: 1px solid var(--uc-border); }
.img-preview-sq { width: 120px; height: 120px; object-fit: cover; border-radius: .6rem; background: #eef2f7; border: 1px solid var(--uc-border); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.thumb-grid .thumb { position: relative; border-radius: .5rem; overflow: hidden; aspect-ratio: 1; background: #eef2f7; border: 1px solid var(--uc-border); }
.thumb-grid .thumb img, .thumb-grid .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid .thumb .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,23,42,.7); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.thumb-grid .thumb.dragging { opacity: .4; }
.thumb-grid .thumb[draggable="true"] { cursor: grab; }
.media-card { border: 1px solid var(--uc-border); border-radius: .7rem; overflow: hidden; background: #fff; cursor: pointer; transition: .15s; height: 100%; }
.media-card:hover { border-color: rgba(var(--uc-primary-rgb), .45); box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.media-card.selected { outline: 3px solid var(--uc-primary); outline-offset: -1px; }
.media-card .pv { aspect-ratio: 4/3; background: #eef2f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-card .pv img { width: 100%; height: 100%; object-fit: cover; }
.media-card .pv i { font-size: 2.6rem; }
.media-card .nm { font-size: .78rem; padding: .5rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Menu builder ---------- */
.menu-tree { list-style: none; padding: 0; margin: 0; min-height: 24px; }
.menu-tree .menu-tree { padding-left: 2rem; margin-top: .4rem; }
.menu-node { margin-bottom: .4rem; }
.menu-item { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--uc-border); border-radius: .6rem; padding: .55rem .75rem; }
.menu-item .grip { cursor: grab; color: #94a3b8; font-size: 1.1rem; }
.menu-item.inactive { opacity: .55; }
.menu-node.dragging > .menu-item { opacity: .4; border-style: dashed; }
.menu-node.drop-before > .menu-item { box-shadow: 0 -3px 0 var(--uc-primary); }
.menu-node.drop-after > .menu-item { box-shadow: 0 3px 0 var(--uc-primary); }
.menu-node.drop-inside > .menu-item { background: rgba(var(--uc-primary-rgb), .07); border-color: var(--uc-primary); }

/* ---------- Permission matrix ---------- */
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; }
.perm-table .form-check-input { width: 1.15em; height: 1.15em; cursor: pointer; }
.role-item { cursor: pointer; border-left: 3px solid transparent; }
.role-item.active { background: rgba(var(--uc-primary-rgb), .07); border-left-color: var(--uc-primary); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side { flex: 1; background: linear-gradient(145deg, #0f1d3a 0%, #1e3a8a 55%, #1e40af 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.auth-side::before { content: ""; position: absolute; left: -80px; top: 20%; width: 220px; height: 220px; border-radius: 50%; background: rgba(245, 158, 11, .12); }
.auth-form { width: 100%; max-width: 520px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.auth-form .inner { width: 100%; max-width: 380px; }
.demo-account { cursor: pointer; border: 1px solid var(--uc-border); border-radius: .55rem; padding: .45rem .6rem; font-size: .76rem; transition: .15s; }
.demo-account:hover { border-color: var(--uc-primary); background: rgba(var(--uc-primary-rgb), .04); }
@media (max-width: 991.98px) { .auth-side { display: none; } .auth-form { max-width: none; } }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--uc-muted); }
.empty-state i { font-size: 2.6rem; color: #c3cde0; display: block; margin-bottom: .5rem; }
.serp { font-family: Arial, sans-serif; border: 1px solid var(--uc-border); border-radius: .6rem; padding: .85rem 1rem; background: #fff; }
.serp .u { font-size: .8rem; color: #202124; }
.serp .t { color: #1a0dab; font-size: 1.1rem; line-height: 1.3; margin: .2rem 0; }
.serp .d { color: #4d5156; font-size: .84rem; }
.swatch { width: 38px; height: 38px; border-radius: .5rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--uc-border); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--uc-primary); }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-row { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #f1f4f9; }
.list-row:last-child { border-bottom: 0; }
.chart-box { position: relative; height: 280px; }
.tox-tinymce { border-radius: .55rem !important; border-color: #dee2e6 !important; }
.swal2-popup { font-family: var(--bs-body-font-family); border-radius: .9rem; }
.swal2-styled.swal2-confirm { background-color: var(--uc-primary) !important; }
.tag-input { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 38px; padding: .3rem .5rem; cursor: text; }
.tag-input input { border: 0; outline: 0; flex: 1; min-width: 120px; font-size: .875rem; }
.tag-chip { background: rgba(var(--uc-primary-rgb), .1); color: var(--uc-primary); border-radius: 50rem; padding: .15rem .35rem .15rem .6rem; font-size: .78rem; font-weight: 500; display: inline-flex; align-items: center; gap: .2rem; }
.tag-chip button { border: 0; background: transparent; color: inherit; padding: 0 .15rem; line-height: 1; }
.sticky-side { position: sticky; top: calc(var(--uc-topbar-h) + 1rem); }
.forbidden { max-width: 520px; margin: 3rem auto; text-align: center; }
.forbidden i { font-size: 4rem; color: #f59e0b; }
.cursor-pointer { cursor: pointer; }
.text-purple { color: #6d28d9 !important; }
/* DataTables Responsive: ikon expand tidak memecah isi sel */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control { position: relative; padding-left: 2rem !important; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); margin: 0; }
table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
td.w-title { min-width: 280px; }
@media (max-width: 575.98px) { .stat-card { padding: .85rem; gap: .65rem; } .stat-card .ico { width: 40px; height: 40px; font-size: 1.1rem; } .stat-card .val { font-size: 1.25rem; } .uc-page-head h1 { font-size: 1.2rem; } }
