/* ===== Portal Pemerintah UMKM — Premium Theme ===== */
:root {
  --primary: #2563EB;
  --primary-2: #3B82F6;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --bg: #F8FAFC;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}
* { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,.brand { font-family: var(--font-head); font-weight: 700; }
a { text-decoration: none; }
::selection { background: var(--primary); color: #fff; }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--dark); }
.brand strong { color: var(--primary); }
.brand-light { color: #fff !important; }
.brand-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #1D4ED8); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 6px 16px rgba(37,99,235,.35); }

/* ===== Floating Navbar ===== */
.floating-nav { position: sticky; top: 14px; z-index: 1000; margin: 14px 18px 0; }
.floating-nav > .container { background: rgba(255,255,255,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(226,232,240,.9); border-radius: 20px; box-shadow: var(--shadow); padding: .65rem 1.4rem; }
.floating-nav .nav-link { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .45rem .85rem; border-radius: 10px; transition: color .2s, background-color .2s; }
.floating-nav .nav-link:hover { color: var(--primary); background: rgba(37,99,235,.07); }
.search-mini { display: flex; align-items: center; gap: 8px; background: #F1F5F9; border-radius: 999px; padding: .45rem .95rem; }
.search-mini i { color: var(--muted); font-size: .8rem; }
.search-mini input { border: 0; background: none; outline: none; font-size: .85rem; width: 130px; }
.lang-toggle { font-size: .75rem; font-weight: 800; color: var(--muted); border: 1.5px solid var(--border); border-radius: 8px; padding: .35rem .55rem; transition: color .2s, border-color .2s; }
.lang-toggle:hover { color: var(--primary); border-color: var(--primary); }

/* ===== Buttons ===== */
.btn-pill { border-radius: 999px; font-weight: 700; font-size: .88rem; padding: .55rem 1.35rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #1D4ED8); border: 0; box-shadow: 0 6px 18px rgba(37,99,235,.3); transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.4); }
.btn-ghost { color: var(--dark); font-weight: 700; border: 1.5px solid var(--border); background: #fff; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Hero ===== */
.hero { position: relative; background: var(--dark); color: #fff; border-radius: 28px; margin: 22px 18px; padding: 110px 0 130px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 75% 20%, rgba(37,99,235,.4), transparent 60%), radial-gradient(ellipse 45% 40% at 15% 85%, rgba(16,185,129,.15), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .45rem 1.1rem; font-size: .82rem; font-weight: 600; color: #93C5FD; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 760px; }
.hero p { color: #94A3B8; font-size: 1.08rem; max-width: 620px; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 9s ease-in-out infinite; }
.orb-blue { width: 320px; height: 320px; background: #2563EB; top: -80px; right: -60px; }
.orb-green { width: 220px; height: 220px; background: #10B981; bottom: -70px; left: 8%; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-24px); } }

/* ===== Stats strip ===== */
.stats-strip { margin: -70px 18px 0; position: relative; z-index: 5; }
.stats-strip .card-stat { background: rgba(255,255,255,.85); backdrop-filter: blur(16px); border: 1px solid rgba(226,232,240,.9); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-lg); height: 100%; transition: transform .25s; }
.stats-strip .card-stat:hover { transform: translateY(-4px); }
.stat-num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--dark); }
.stat-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { margin-bottom: 46px; }
.section-eyebrow { color: var(--primary); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.link-arrow { font-weight: 700; color: var(--primary); font-size: .92rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ===== Cards ===== */
.card-premium { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; height: 100%; }
.card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 180px; background: linear-gradient(135deg, #1E293B, #334155); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: 2.4rem; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body-p { padding: 22px; }
.chip { display: inline-block; background: rgba(37,99,235,.08); color: var(--primary); font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .3rem .8rem; letter-spacing: .04em; text-transform: uppercase; }
.card-title-link { color: var(--dark); font-weight: 700; font-size: 1.02rem; line-height: 1.4; display: block; margin: 12px 0 8px; transition: color .2s; }
.card-title-link:hover { color: var(--primary); }
.card-meta { color: var(--muted); font-size: .8rem; display: flex; gap: 14px; }
.card-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* Template card */
.tpl-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; height: 100%; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.ext-pdf { background: rgba(239,68,68,.1); color: var(--danger); }
.ext-doc { background: rgba(37,99,235,.1); color: var(--primary); }
.ext-xls { background: rgba(16,185,129,.1); color: var(--success); }
.ext-other { background: rgba(100,116,139,.12); color: var(--muted); }

/* UMKM card */
.umkm-logo { width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #1D4ED8); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; overflow: hidden; }
.umkm-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Badges ===== */
.badge-status { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .32rem .8rem; letter-spacing: .03em; }
.badge-success { background: rgba(16,185,129,.12); color: #059669; }
.badge-danger { background: rgba(239,68,68,.12); color: #DC2626; }
.badge-warning { background: rgba(245,158,11,.14); color: #B45309; }
.badge-info { background: rgba(59,130,246,.12); color: #2563EB; }
.badge-primary { background: rgba(37,99,235,.12); color: #1D4ED8; }
.badge-secondary { background: rgba(100,116,139,.14); color: #475569; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #94A3B8; padding: 70px 0 0; margin-top: 40px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94A3B8; font-size: .9rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-desc { font-size: .92rem; max-width: 380px; line-height: 1.7; }
.footer-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .5rem 1.1rem; font-size: .8rem; color: #93C5FD; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; font-size: .82rem; text-align: center; }

/* ===== Auth ===== */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; background: var(--dark); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow: hidden; }
.auth-side-title { font-size: 2rem; font-weight: 800; line-height: 1.2; max-width: 420px; position: relative; z-index: 2; }
.auth-side-sub { color: #94A3B8; max-width: 400px; position: relative; z-index: 2; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.auth-orb.orb-1 { width: 300px; height: 300px; background: #2563EB; top: -60px; right: -60px; }
.auth-orb.orb-2 { width: 220px; height: 220px; background: #10B981; bottom: -60px; left: -40px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h3 { font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }
.form-label { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--border); padding: .7rem 1rem; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ===== Dashboard ===== */
.dash-body { background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; background: var(--dark); display: flex; flex-direction: column; z-index: 1010; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.sidebar-brand { padding: 26px 24px 12px; }
.sidebar-role { margin: 0 24px 18px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; color: #64748B; }
.sidebar-nav { flex: 1; padding: 0 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 13px; color: #94A3B8; font-size: .9rem; font-weight: 600; padding: .72rem 1rem; border-radius: 12px; transition: background-color .2s, color .2s; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: .92rem; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), #1D4ED8); box-shadow: 0 6px 16px rgba(37,99,235,.35); }
.sidebar-footer { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.07); }
.logout-link { color: #F87171; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 12px; }
.dash-main { margin-left: 260px; min-height: 100vh; transition: margin-left .3s; }
.dash-topbar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 18px; background: rgba(248,250,252,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 14px 30px; }
.topbar-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-icon { color: var(--muted); font-size: 1rem; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #1D4ED8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; }
.topbar-name { font-weight: 700; font-size: .85rem; line-height: 1.1; }
.topbar-role { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.sidebar-toggle { display: none; border: 0; background: none; font-size: 1.1rem; color: var(--dark); }
.dash-content { padding: 30px; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Dash cards */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); height: 100%; transition: transform .2s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-card .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.panel-head h5 { margin: 0; font-size: 1rem; font-weight: 800; }
.panel-body { padding: 24px; }

/* Tables */
.table-modern { margin: 0; }
.table-modern th { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); padding: 14px 24px; background: #F8FAFC; }
.table-modern td { padding: 15px 24px; vertical-align: middle; font-size: .89rem; border-bottom: 1px solid #F1F5F9; }
.table-modern tbody tr { transition: background-color .15s; }
.table-modern tbody tr:hover { background: #F8FAFC; }
.btn-icon { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; transition: color .2s, border-color .2s; }
.btn-icon:hover { color: var(--primary); border-color: var(--primary); }
.btn-icon.danger:hover { color: var(--danger); border-color: var(--danger); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #EEF2F7; }
.timeline li:last-child { border: 0; }
.tl-dot { width: 34px; height: 34px; border-radius: 10px; background: rgba(37,99,235,.08); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }
.tl-text { font-size: .86rem; font-weight: 600; }
.tl-time { font-size: .74rem; color: var(--muted); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; opacity: .3; margin-bottom: 16px; display: block; }

/* Article */
.article-body { font-size: 1.05rem; line-height: 1.85; color: #334155; }
.article-body p { margin-bottom: 1.3rem; }
.page-hero { background: var(--dark); color: #fff; border-radius: 24px; margin: 22px 18px; padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 80% 20%, rgba(37,99,235,.35), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: #94A3B8; }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .dash-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .floating-nav > .container { border-radius: 16px; }
  .search-mini { margin: 10px 0; }
  .hero { padding: 70px 0 110px; margin: 14px 10px; }
  .stats-strip { margin: -60px 10px 0; }
}
