/* =====================
   ROOT VARIABLES
===================== */
:root{
  /*--bg:#0f172a;*/
  --bg:#0f172a;
  --glass:rgba(255,255,255,0.06);
  --accent-1:#ff7b7b;
  --accent-2:#7bdff6;
  --accent-3:#ffd57b;
  --text:#e6eef8;
  --muted:#94a3b8;
  --danger:#ff6b6b;
}

.judul {
  margin-top: 40px;
}

/* =====================
   RESET & BASE
===================== */
*{
  box-sizing:border-box;
}

html,body{
  height:100%;
  margin:0;
  font-family:Inter,system-ui,Arial;
  background:linear-gradient(135deg,#072929 0%, #0a1b2b 100%);
  color:var(--text);
}

a{color:inherit;text-decoration:none}

/* =====================
   TYPOGRAPHY
===================== */
h1,h2,h3{
  margin:0 0 12px;
  font-weight:600;
}

h2{
  text-align:center;
  letter-spacing:.5px;
}

.subtitle{
  color:var(--muted);
  font-size:14px;
}

/* =====================
   NAVBAR
===================== */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 22px;
  margin:20px;
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  border-radius:16px;
  color:#041226;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}

.navbar .logo{
  font-weight:700;
  font-size:18px;
}

.navbar nav ul{
  list-style:none;
  display:flex;
  gap:14px;
  margin:0;
  padding:0;
}

.navbar nav ul li a{
  padding:6px 14px;
  border-radius:10px;
  font-weight:500;
  transition:.25s;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active{
  background:var(--accent-3);
}

/* =====================
   CONTAINER & CARD
===================== */
.container{
  max-width:1100px;
  margin:28px auto;
  padding:26px;
  background:rgba(255,255,255,.04);
  border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
}

.card{
  background:rgba(255,255,255,.05);
  padding:18px 20px;
  border-radius:16px;
  margin-bottom:20px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

/* =====================
   FORM & INPUT
===================== */
input{
  width:100%;
  padding:11px 14px;
  margin-bottom:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:var(--glass);
  color:var(--text);
  transition:.25s;
}

input::placeholder{
  color:var(--muted);
}

input:focus{
  outline:none;
  border-color:var(--accent-2);
  box-shadow:0 0 0 2px rgba(123,223,246,.25);
}

/* =====================
   BUTTONS
===================== */
button{
  padding:9px 18px;
  border-radius:12px;
  border:none;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  color:#041226;
  transition:.25s;
}

button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

button:active{
  transform:scale(.96);
}

button.danger{
  background:var(--danger);
  color:#041226;
}

/* =====================
   TABLE
===================== */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
  background:rgba(255,255,255,.03);
  border-radius:18px;
  overflow:hidden;
}

thead{
  background:rgba(255,255,255,.08);
}

th,td{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

th{
  font-size:13px;
  text-transform:uppercase;
  color:var(--muted);
}

tbody tr:hover{
  background:rgba(255,255,255,.05);
}

/* Action buttons in table */
table button{
  background:rgba(255,255,255,.15);
  color:var(--text);
}

table button:hover{
  background:var(--accent-1);
  color:#041226;
}

/* =====================
   BADGE (STATUS)
===================== */
.badge{
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.badge.draft{
  background:var(--accent-3);
  color:#041226;
}

.badge.completed{
  background:var(--accent-2);
  color:#041226;
}

/* =====================
   PO ACTIONS
===================== */
.po-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:20px;
}

.po-actions .save{
  background:linear-gradient(90deg,var(--accent-2),var(--accent-3));
  color:#041226;
}

.po-actions .cancel{
  background:rgba(255,255,255,.15);
  color:var(--text);
}

.po-actions .print{
  background:linear-gradient(90deg,var(--accent-1),var(--accent-3));
  color:#041226;
}

/* =====================
   AUTOCOMPLETE
===================== */
.autocomplete{
  position:relative;
}

.autocomplete-list{
  position:absolute;
  top:110%;
  left:0;
  right:0;
  background:rgba(15,23,42,.96);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  max-height:180px;
  overflow-y:auto;
  display:none;
  z-index:100;
  backdrop-filter:blur(8px);
}

.autocomplete-item{
  padding:10px 16px;
  cursor:pointer;
  transition:.2s;
}

.autocomplete-item:hover{
  background:var(--accent-2);
  color:#041226;
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:768px){
  .navbar{
    flex-direction:column;
    gap:10px;
  }

  .container{
    margin:16px;
    padding:18px;
  }

  table{
    font-size:13px;
  }

  .po-actions{
    flex-direction:column;
  }
}
