/* assets/style.css — responsive, simple, mobile-first */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji","Segoe UI Emoji"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  position: sticky; top:0; z-index:50;
  background: rgba(15,23,42,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.flex { display:flex; gap:16px; }
.logo { font-weight: 800; letter-spacing: .5px; }
.nav a { margin-right: 12px; color: var(--text); opacity:.9 }
.nav a.active { color: var(--accent); }

.grid { display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 900px) {
  .grid { grid-template-columns: 2fr 1fr; }
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-accent {
  color: #22d3ee; /* bagian aksen */
  font-weight: 900;
}

.logo-main {
  color: #fff; /* bagian utama */
  font-weight: 700;
}

.logo:hover {
  text-shadow: 0 0 10px rgba(34,211,238,0.6);
}

/* Sidebar fix */
.sidebar {
  width: 280px;        /* Atur lebar sidebar */
  flex-shrink: 0;
}

.sidebar .widget {
  margin-bottom: 15px;
}

.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.recent-post-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

.recent-post-item .info {
  flex: 1;
  min-width: 0; /* biar teks wrap, gak maksa sidebar melebar */
}

.recent-post-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}

.recent-post-item h4 a {
  color: #fff; /* sesuaikan dengan tema */
  text-decoration: none;
}

.recent-post-item p {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.card .thumb { width: 100%; height: 180px; object-fit: cover; display:block; }
.card .p { padding: 14px; }
.meta { color: var(--muted); font-size: 13px; }
.title { font-size: 20px; font-weight: 700; margin: 6px 0 8px; color: var(--text); }
.btn {
  display:inline-block; padding:10px 14px; border-radius:10px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa); color:#0b1220; font-weight:700;
}

.sidebar .widget { padding:14px; }
.footer { margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer .muted { color: var(--muted); font-size: 14px; }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align:left; }
.badge { padding: 2px 8px; border-radius:999px; background:#1f2937; color:#e5e7eb; font-size:12px; }

form input[type=text], form input[type=password], form textarea, form select {
  width: 100%; padding: 10px; border-radius: 10px; border:1px solid rgba(255,255,255,0.12); background:#0b1220; color:#e5e7eb;
}
form textarea { min-height: 220px; }
form .row { display:grid; grid-template-columns: 1fr; gap:12px; }
@media (min-width: 700px) {
  form .row.two { grid-template-columns: 1fr 1fr; }
}
form .actions { display:flex; gap:10px; align-items:center; }
.alert { padding:10px 12px; border-radius:10px; background:#0b3a2a; color:#d1fae5; border:1px solid #065f46; }
.err { background:#3a0b0b; color:#fee2e2; border:1px solid #7f1d1d; }
