:root{
  --blue-dark:#0d3b66;
  --blue-darker:#0a2c4d;
  --blue-mid:#1a5fb4;
  --orange:#f28c28;
  --orange-dark:#d9761b;
  --green:#2ea043;
  --red:#d9363e;
  --gray-bg:#eeeeee;
  --radius:14px;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Segoe UI',Arial,sans-serif;
  background:radial-gradient(circle at center, var(--blue-mid), var(--blue-darker));
  min-height:100vh;
  color:#fff;
}
.hidden{display:none !important;}

/* ---------- Login/Register Card ---------- */
.auth-wrap{
  max-width:440px;
  margin:40px auto;
  padding:0 16px;
}
.auth-card{
  background:linear-gradient(180deg, var(--blue-dark), var(--blue-darker));
  border-radius:24px;
  padding:36px 32px;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}
.auth-card h1{
  text-align:center;
  font-size:28px;
  letter-spacing:1px;
  margin:0 0 24px;
}
.auth-logo{
  display:block;
  margin:0 auto 16px;
  max-width:120px;
  max-height:120px;
  width:auto;
  height:auto;
}
.password-wrap{
  position:relative;
}
.field .password-wrap input{
  padding-right:40px;
}
.password-toggle{
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  padding:4px;
  color:#333;
}
.password-toggle:hover{ opacity:.7; }
.role-tabs{
  display:flex;
  gap:8px;
  margin-bottom:20px;
}
.role-tabs button{
  flex:1;
  padding:12px;
  border:none;
  border-radius:10px;
  font-weight:bold;
  cursor:pointer;
  background:#8a8f98;
  color:#fff;
}
.role-tabs button.active{ background:var(--orange); }

.field{ margin-bottom:16px; }
.field label{ display:block; margin-bottom:6px; font-size:14px; }
.field input, .field select{
  width:100%;
  padding:10px 12px;
  border-radius:6px;
  border:none;
  background:#e9e9e9;
  font-size:15px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 20px;
  border:none;
  border-radius:24px;
  font-weight:bold;
  cursor:pointer;
  font-size:15px;
}
.btn-block{ width:100%; }
.btn-orange{ background:var(--orange); color:#fff; }
.btn-orange:hover{ background:var(--orange-dark); }
.btn-green{ background:var(--green); color:#fff; }
.btn-red{ background:var(--red); color:#fff; }
.btn-gray{ background:#8a8f98; color:#fff; }
.btn-blue{ background:var(--blue-mid); color:#fff; }

.msg-error{ text-align:center; margin:10px 0; font-size:14px; color:#ffd7d7; }
.msg-ok{ text-align:center; margin:10px 0; font-size:14px; color:#c9ffcf; }
.footer-note{ text-align:center; margin-top:24px; font-size:12px; opacity:.8; }

/* ---------- Dashboard Layout ---------- */
.dash{
  display:flex;
  min-height:100vh;
  background:#eeeeee;
  color:#111;
}
.dash-sidebar{
  width:320px;
  flex-shrink:0;
  background:#eeeeee;
  border-right:1px solid #ccc;
  padding:24px;
  display:flex;
  flex-direction:column;
}
.dash-sidebar h2{ margin-top:0; }
.dash-main{
  flex:1;
  padding:24px 32px;
}
.sidebar-btn{
  margin-bottom:12px;
  text-align:left;
}
.folder-list{
  border:1px solid #999;
  border-radius:6px;
  margin-top:8px;
  max-height:260px;
  overflow-y:auto;
}
.folder-item{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid #ddd;
}
.folder-item:hover, .folder-item.active{ background:#5bc8dc; }
.search-box{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #999;
  border-radius:6px;
  padding:6px 10px;
  margin-top:10px;
}
.search-box input{ border:none; outline:none; flex:1; }

.notif-panel{
  border:1px solid #333;
  border-radius:6px;
  margin-top:16px;
  padding:10px;
  flex:1;
  overflow-y:auto;
}
.notif-item{
  display:flex;
  gap:8px;
  padding:8px 0;
  border-bottom:1px solid #eee;
  font-size:13px;
}

table.data-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
}
table.data-table th{
  background:var(--blue-mid);
  color:#fff;
  padding:12px;
  text-align:left;
}
table.data-table td{
  padding:12px;
  border-bottom:1px solid #eee;
}
table.data-table .aksi-cell{ display:flex; gap:8px; flex-wrap:wrap; }

.header-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--blue-mid);
  color:#fff;
  padding:10px 18px;
  border-radius:20px;
  margin-bottom:20px;
  font-weight:bold;
}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  display:flex; align-items:center; justify-content:center;
  z-index:1000;
}
.modal-box{
  background:#fff;
  color:#111;
  border-radius:12px;
  padding:26px;
  width:min(480px, 92vw);
  max-height:86vh;
  overflow-y:auto;
}
.modal-box h3{ margin-top:0; }
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}

.toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:#222;
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  z-index:2000;
}
.toast.error{ background:var(--red); }
.toast.ok{ background:var(--green); }

@media (max-width: 720px){
  .dash{ flex-direction:column; }
  .dash-sidebar{ width:auto; border-right:none; border-bottom:1px solid #ccc; }
}
