:root{
  --bg:#F8DDE0;
  --card:#ffffff;
  --nav:#0F3656;
  --muted:#f3f3f3;
  --text:#222;
  --shadow:0 8px 20px rgba(0,0,0,.08);
  --radius:16px;
  --radius-lg:22px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.container{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:0;
  min-height:100vh;
}
aside{
  background:#ffffff;
  border-right:1px solid #bababa;
  position: sticky;
  top:0;
  height:100vh;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:2px solid #eee;
  top:0;
  background:#00247e;
  z-index:20;
  color: rgb(255, 255, 255);
}
.brand .logo{
  width:32px;
  height:32px;
  border-radius:8px;
  background:#0fb;
  display:grid;
  place-items:center;
  font-weight:700
}
.sidebar-group{padding:8px 12px;}
.item{
  background:var(--muted);
  margin:10px 0;
  border-radius:var(--radius);
  padding:14px 16px;
  font-weight:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.submenu{padding:10px 16px 0 16px;display:none}
.submenu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
  font-weight:600
}
.submenu a:hover{background:#ececec}
main{background:#fff;overflow:auto;}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  border-bottom:2px solid #eee;
  position:relative;
  top:0;
  background:#00247e;
  color: #eee;
  z-index:20
}
.topbar .clock{
  font-weight:700;
  background:#00247e;
  padding:8px 12px;
  border-radius:12px
}
.topbar .profile{position:relative}
.avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#ddd;
  display:grid;
  place-items:center;
  cursor:pointer;
  border:2px solid #eee
}
.dropdown{
  position:absolute;
  right:0;top:46px;
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  box-shadow:var(--shadow);
  display:none;
  min-width:200px;overflow:hidden
}
.dropdown a{
  display:block;
  padding:12px 14px;
  color:#222;
  text-decoration:none;
  font-weight:600
}
.dropdown a:hover{background:#f6f6f6}
.hero{
  margin:18px;
  border-radius:var(--radius-lg);
  background:var(--nav);
  color:#fff;
  padding:32px 24px;
  box-shadow:var(--shadow);
  position:sticky;
  top:56px;
  z-index:5;
}
.hero .cta{
  background:#fff;
  color:#0F3656;
  border:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer
}
.toolbar{
  display:flex;
  gap:12px;
  padding:12px 18px
}
.search{
  display:flex;
  align-items:center;
  gap:6px
}
.search input{
  border:2px solid #000000;
  border-radius:12px;
  padding:10px 12px;
  min-width:320px
}
.table{
  padding:0 18px 32px 18px;
  overflow-x:auto
}
.table table{
  width:100%;
  border-collapse:collapse;
}
th,td{
  padding:12px 8px;
  text-align:left;
  border-bottom:1px solid #f0f0f0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.table th:nth-child(1), .table td:nth-child(1){width:45%;}
.table th:nth-child(2), .table td:nth-child(2){width:20%;}
.table th:nth-child(3), .table td:nth-child(3){width:20%;}
.table th:nth-child(4), .table td:nth-child(4){width:15%;text-align:center;}
.table td a{
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s;
}

.btn.tambah { background: #20b042; }
.btn.tambah:hover { background: #218838; }

.btn.unduh { background: #007bff; }
.btn.unduh:hover { background: #0069d9; }

.btn.hapus { background: #e74c3c; }
.btn.hapus:hover { background: #c0392b; }

.editor-wrap{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  background:#fff
}
.editor-toolbar{
  padding:10px 16px;
  border-bottom:1px solid #eee;
  display:flex;
  gap:8px;
  position:sticky;
  top:0;
  background:#fff
}
.editor-toolbar button{
  border:1px solid #ddd;
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer
}
.editor{
  max-width:900px;
  margin:24px auto;
  background:#fff;
  min-height:60vh;
  border:1px solid #eee;
  border-radius:16px;
  padding:24px;
  box-shadow:var(--shadow)
}
.title-input{
  display:block;
  margin:16px auto;
  max-width:900px;
  width:90%;
  padding:12px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:18px;
  font-weight:700
}
.save-notice{
  text-align:center;
  margin:8px;
  color:#666
}
