/* v5 admin premium light theme - lebih terang dan mudah dibaca */
:root{
  --admin-bg:#f8f3ea;
  --admin-bg2:#fffaf2;
  --admin-panel:#ffffff;
  --admin-panel-soft:#fff8eb;
  --admin-text:#1d1710;
  --admin-muted:#716657;
  --admin-border:#e5d8c4;
  --admin-gold:#c8952d;
  --admin-gold2:#f4cc70;
  --admin-sidebar:#fff4df;
  --admin-sidebar-text:#2a2117;
  --admin-input:#ffffff;
  --admin-shadow:0 18px 54px rgba(83,58,25,.10);
}
*{box-sizing:border-box}
body{
  margin:0!important;
  background:linear-gradient(135deg,#fffaf2 0%,#f8eedf 48%,#f2e5d1 100%)!important;
  color:var(--admin-text)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:15px;
}
a{color:#8a5a08} a:hover{color:#5f3b00}
.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 10%,rgba(244,204,112,.42),transparent 30%),linear-gradient(135deg,#fff8ed,#f5e4c9)!important;}
.login-card{width:min(440px,92vw);background:#fff!important;border:1px solid var(--admin-border)!important;border-radius:28px;padding:2.2rem;box-shadow:0 28px 90px rgba(79,49,11,.18)!important;color:var(--admin-text)!important;}
.login-card h2{color:#17120c!important;font-weight:900;letter-spacing:-.04em;margin-bottom:.5rem}.login-card p{color:#5d5144!important;font-weight:600}.login-card .alert{border-radius:14px}.login-card input{height:48px;margin-bottom:1rem;background:#fff!important;color:#17120c!important;border:1px solid #d8c9b3!important;border-radius:14px!important}.login-card input::placeholder{color:#8b8175!important}.login-card input:focus{border-color:var(--admin-gold)!important;box-shadow:0 0 0 .24rem rgba(200,149,45,.18)!important}
.btn-warning{background:linear-gradient(135deg,var(--admin-gold2),var(--admin-gold))!important;border:0!important;color:#1b1408!important;font-weight:800;border-radius:12px!important;padding:.72rem 1rem!important}.btn-warning:hover{filter:brightness(.98);transform:translateY(-1px)}
.admin-layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh;background:transparent!important}.admin-layout aside{background:linear-gradient(180deg,#fff9ed,#f7ead4)!important;border-right:1px solid var(--admin-border)!important;padding:1.4rem!important;position:sticky;top:0;height:100vh;color:var(--admin-sidebar-text)!important;box-shadow:8px 0 30px rgba(81,56,22,.05)}
aside h4{color:#a36a08!important;margin:0 0 1.4rem;font-weight:900;letter-spacing:-.035em}aside a{display:block;color:#2b241c!important;text-decoration:none;padding:.82rem .9rem;border-radius:14px;margin:.1rem 0;font-weight:650}aside a:hover,aside a.active{background:#fff!important;color:#a36a08!important;box-shadow:0 8px 24px rgba(81,56,22,.08)}
.admin-layout main{padding:1.7rem!important}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;color:#1b1712!important}.topbar b,.topbar h5{font-weight:900;color:#1b1712!important}.topbar .btn-outline-light{color:#2a2117!important;border-color:#c9b99f!important;background:#fff!important;font-weight:800}.topbar .btn-outline-light:hover{background:#fff4db!important;border-color:var(--admin-gold)!important}
.panel,.stat-card{background:rgba(255,255,255,.94)!important;border:1px solid var(--admin-border)!important;border-radius:24px!important;padding:1.25rem!important;box-shadow:var(--admin-shadow)!important;color:var(--admin-text)!important}.panel+.panel{margin-top:1.3rem}.panel h5,.panel h4{color:#17120c!important;font-weight:900}.panel p,.stat-card span,.text-secondary{color:var(--admin-muted)!important}.stat-card strong{display:block;font-size:2rem;color:#a36a08!important}
.form-control,.form-select,textarea,input,select{background:#fff!important;border:1px solid #dacbb5!important;color:#17120c!important;border-radius:12px!important;min-height:42px}.form-control::placeholder,textarea::placeholder,input::placeholder{color:#877c6f!important}.form-control:focus,.form-select:focus,input:focus,textarea:focus{border-color:var(--admin-gold)!important;box-shadow:0 0 0 .23rem rgba(200,149,45,.16)!important;color:#17120c!important}.form-label,label{color:#2b241c!important;font-weight:750}.table{color:#17120c!important;border-color:#dfd3bf!important}.table>thead{background:#efe2cf!important;color:#17120c!important}.table>:not(caption)>*>*{background:#fffdf8!important;color:#17120c!important;border-color:#dfd3bf!important}.table tbody tr:nth-child(even)>*{background:#fbf3e7!important}.table a{font-weight:800;color:#9a6400!important}.alert-success{background:#eaf7ea!important;color:#155724!important;border-color:#bfe4c1!important}.alert-danger{background:#ffe8e8!important;color:#8a1f1f!important;border-color:#f1bcbc!important}
.chat-session{display:block;border:1px solid #d9cdbc!important;padding:.9rem;border-radius:16px;margin-bottom:.7rem;color:#17120c!important;text-decoration:none;background:#fff!important}.chat-session.active,.chat-session:hover{border-color:var(--admin-gold)!important;background:#fff4db!important;color:#17120c!important}.chat-session span,.chat-session small{display:block;color:#716657!important;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-chat-messages{height:55vh;overflow:auto;background:#fffdf8!important;border:1px solid #d9cdbc!important;border-radius:18px;padding:1rem}.admin-msg{max-width:78%;margin-bottom:.8rem;padding:.75rem 1rem;border-radius:16px;background:#f2eadf!important;color:#17120c!important}.admin-msg.me{margin-left:auto;background:linear-gradient(135deg,var(--admin-gold2),var(--admin-gold))!important;color:#17120c!important}.admin-msg span{font-size:.72rem;text-transform:uppercase;opacity:.8}.admin-msg p{margin:.2rem 0}.admin-msg small{font-size:.7rem;opacity:.7}
input[type=file]::file-selector-button{border:0;background:#f0dfc4;color:#17120c;padding:.58rem .9rem;margin-right:.8rem;border-radius:10px;font-weight:800}.small,.text-muted{color:#716657!important}
@media(max-width:800px){.admin-layout{grid-template-columns:1fr}.admin-layout aside{position:relative;height:auto}.admin-layout main{padding:1rem!important}.table{font-size:.86rem;display:block;overflow-x:auto;white-space:nowrap}.topbar{gap:1rem;align-items:flex-start;flex-direction:column}}


/* v6: tabel admin dibuat lebih terang, baris zebra tidak lagi hitam pekat */
.admin-layout .table,
.admin-layout .table-dark,
.admin-layout .table-striped{
  --bs-table-color:#21180f!important;
  --bs-table-bg:#fffaf1!important;
  --bs-table-border-color:#e6d7c2!important;
  --bs-table-striped-color:#21180f!important;
  --bs-table-striped-bg:#f5ead8!important;
  --bs-table-hover-color:#21180f!important;
  --bs-table-hover-bg:#f0dfc4!important;
  color:#21180f!important;
  border-color:#e6d7c2!important;
}
.admin-layout .table th{
  background:#ead9bd!important;
  color:#1b140b!important;
  font-weight:900!important;
}
.admin-layout .table td{
  background:#fffaf1!important;
  color:#21180f!important;
}
.admin-layout .table-striped tbody tr:nth-of-type(even) td,
.admin-layout .table-striped tbody tr:nth-of-type(even) th{
  background:#f5ead8!important;
  color:#21180f!important;
}
.admin-layout .table-striped tbody tr:nth-of-type(odd) td,
.admin-layout .table-striped tbody tr:nth-of-type(odd) th{
  background:#fffaf1!important;
  color:#21180f!important;
}
.admin-layout .table a{color:#946000!important;text-decoration:underline;font-weight:900!important;}
.settings-preview{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;background:#fffaf1;border:1px dashed #d8c3a5;border-radius:16px;padding:.8rem;margin-top:.5rem;color:#5f5140;}
.settings-preview img{width:180px;max-height:90px;object-fit:cover;border-radius:12px;border:1px solid #e2d0b5;background:#fff;}
.settings-preview a{font-weight:900;color:#946000!important;}

/* v7: admin table lebih soft, helper upload, dan preview gambar */
.admin-layout .admin-table,
.admin-layout table.table{
  background:#fffaf2!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
.admin-layout table.table th{
  background:#e8d7b8!important;
  color:#2a1f12!important;
}
.admin-layout table.table td{
  background:#fffaf2!important;
  color:#2a1f12!important;
}
.admin-layout table.table-striped tbody tr:nth-of-type(even) td,
.admin-layout table.table-striped tbody tr:nth-of-type(even) th{
  background:#f7ead7!important;
  color:#2a1f12!important;
}
.admin-layout table.table-striped tbody tr:nth-of-type(odd) td,
.admin-layout table.table-striped tbody tr:nth-of-type(odd) th{
  background:#fffaf2!important;
  color:#2a1f12!important;
}
.form-help{
  background:#fff4df!important;
  border:1px dashed #d8bd8d!important;
  color:#67533a!important;
  border-radius:14px!important;
  padding:.75rem .9rem!important;
  margin-bottom:1rem!important;
}
.upload-note{display:block;margin-top:.35rem;color:#7a6a55!important;font-size:.76rem;font-weight:700;}
.image-current{display:flex;align-items:center;gap:1rem;background:#fffaf2;border:1px solid #e3d1b5;border-radius:16px;padding:.8rem;margin:.7rem 0 1rem;color:#5d4b35;}
.image-current img{width:130px;height:82px;object-fit:cover;border-radius:12px;border:1px solid #dac5a2;background:#fff;}
.image-current strong{color:#7b5108;}

/* v9: tabel admin lebih soft, hilangkan baris gelap dari table-dark/bootstrap */
.admin-layout table,
.admin-layout .table,
.admin-layout .table-dark,
.admin-layout .table-striped,
.admin-layout .table-hover{
  --bs-table-bg:#fffaf2!important;
  --bs-table-color:#241a10!important;
  --bs-table-striped-bg:#f6ead7!important;
  --bs-table-striped-color:#241a10!important;
  --bs-table-hover-bg:#f0dfc4!important;
  --bs-table-hover-color:#241a10!important;
  --bs-table-border-color:#e6d7c2!important;
  background:#fffaf2!important;
  color:#241a10!important;
}
.admin-layout table.table thead,
.admin-layout table.table thead tr,
.admin-layout table.table thead th,
.admin-layout .table-dark thead th{
  background:#ead9bd!important;
  color:#20170d!important;
  border-color:#d8c3a2!important;
}
.admin-layout table.table tbody tr,
.admin-layout table.table tbody td,
.admin-layout table.table tbody th,
.admin-layout .table-dark tbody tr,
.admin-layout .table-dark tbody td,
.admin-layout .table-dark tbody th{
  background:#fffaf2!important;
  color:#241a10!important;
  border-color:#e6d7c2!important;
}
.admin-layout table.table tbody tr:nth-child(even),
.admin-layout table.table tbody tr:nth-child(even) td,
.admin-layout table.table tbody tr:nth-child(even) th,
.admin-layout .table-striped tbody tr:nth-child(even) td{
  background:#f6ead7!important;
  color:#241a10!important;
}
.admin-layout table.table tbody tr:hover td,
.admin-layout table.table tbody tr:hover th{
  background:#f0dfc4!important;
  color:#241a10!important;
}
