:root {
  --teal: #138a8f;
  --teal-dark: #0f6f74;
  --cyan: #31b9e8;
  --header: #15979a;
  --table-header: #55beb8;
  --surface: #ffffff;
  --page: #eef5f6;
  --text: #354052;
  --muted: #778399;
  --orange: #ef6547;
  --green: #38c879;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font-family: "Open Sans", Arial, sans-serif; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #0f7e84 0%, #35b8e5 100%); }
.login-card { width: 360px; max-width: 100%; background: #fff; border-radius: 14px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.login-card h1 { font-size: 26px; margin: 14px 0 4px; font-weight: 700; color: #172033; }
.login-card p { color: #6b7280; margin-bottom: 24px; font-size: 14px; }
.brand-bolt { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #0e7b81; color: #ffd21a; flex: none; }
.brand-bolt.large { width: 62px; height: 62px; font-size: 28px; }
.login-card .form-label { font-size: 13px; font-weight: 600; color: #263244; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 45px; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 0; background: transparent; color: #5b6677; }
.btn-login, .btn-modal-primary { background: var(--teal); color: #fff; border: 0; }
.btn-login:hover, .btn-modal-primary:hover { background: var(--teal-dark); color: #fff; }
.app-shell { min-height: 100vh; background: linear-gradient(180deg, #13878b 0, #2ba5c4 145px, #eef5f6 360px); }
.app-sidebar { position: fixed; top: 14px; left: 14px; bottom: 14px; width: 215px; background: #fff; border-radius: 14px; z-index: 1030; box-shadow: 0 8px 30px rgba(25,50,60,.07); transition: transform .25s ease; overflow: hidden; }
.sidebar-brand { height: 72px; display: flex; align-items: center; padding: 0 20px; gap: 9px; color: #33445f; text-decoration: none; font-size: 11.5px; font-weight: 700; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.sidebar-user { margin: 18px 14px 10px; background: #f6f7f9; border-radius: 8px; padding: 12px; display: flex; gap: 11px; align-items: center; }
.user-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #40bcee; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.sidebar-user strong { display: block; font-size: 13px; color: #5c6370; }
.sidebar-user small { color: #9aa1ad; font-size: 10px; }
.sidebar-nav { padding: 0 8px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 5px 0; border-radius: 7px; color: #4e596c; text-decoration: none; font-size: 13px; }
.sidebar-nav a.active { background: #5dc2eb; color: #18354b; }
.sidebar-nav a.active i { color: #f05d43; }
.sidebar-nav a.logout { color: #ff4d68; margin-top: 14px; }
.sidebar-toggle { position: fixed; z-index: 1040; left: 201px; top: 52%; width: 30px; height: 38px; border: 1px solid #d5d9df; background: #e6e7e9; border-radius: 7px; box-shadow: 0 2px 5px rgba(0,0,0,.12); transition: left .25s ease; }
.app-main { margin-left: 242px; min-height: 100vh; padding: 20px 22px 48px 0; transition: margin-left .25s ease; }
body.sidebar-collapsed .app-sidebar { transform: translateX(-235px); }
body.sidebar-collapsed .sidebar-toggle { left: 4px; }
body.sidebar-collapsed .app-main { margin-left: 20px; padding-left: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin-bottom: 8px; }
.page-header h1 { color: #fff; margin: 0; font-size: 30px; font-weight: 700; }
.action-buttons { display: flex; gap: 8px; }
.action-buttons .btn { color: #fff; font-size: 12px; border: 0; box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.btn-detect { background: #0ea5c6; }
.btn-upload { background: var(--orange); }
.btn-export { background: var(--green); }
.btn-delete { background: #e53935; }
.btn-delete:hover { background: #c62828; color: #fff; }
.btn-delete:disabled { background: #d8a8a6; color: #fff; opacity: .75; cursor: not-allowed; }
.dashboard-card { background: #fff; border-radius: 12px; min-height: calc(100vh - 132px); overflow: hidden; box-shadow: 0 8px 20px rgba(60,90,100,.07); }
.filter-row { min-height: 64px; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #edf0f3; }
.form-select.compact { width: 125px; font-size: 12px; }
.status-select { width: 140px !important; }
.search-input { width: 160px; font-size: 12px; }
.table-wrap { max-height: calc(100vh - 250px); overflow: auto; }
.app-table { min-width: 1050px; }
.app-table thead th { position: sticky; top: 0; z-index: 2; background: var(--table-header); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 12px 10px; border: 0; white-space: nowrap; }
.app-table thead th:nth-child(10) { background: #1a9a91; }
.app-table tbody td { text-align: center; font-size: 12px; padding: 11px 10px; color: #63779c; border-color: #f0f1f2; white-space: nowrap; }
.app-table tbody tr:nth-child(even) td { background: #f7f7f7; }
.app-table tbody td:nth-child(5), .app-table tbody td:nth-child(6) { text-align: left; }
.status-badge { display: inline-block; min-width: 90px; padding: 5px 8px; border-radius: 14px; font-weight: 600; font-size: 11px; }
.status-padan { background: #e9f9f1; color: #188454; }
.status-tidak { background: #fff0ee; color: #c64d3f; }
.status-pending { background: #f3f4f6; color: #707887; }
.image-thumb { border: 0; padding: 0; background: none; width: 42px; height: 52px; overflow: hidden; border-radius: 3px; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.table-footer { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; border-top: 1px solid #edf0f3; }
.app-footer { position: fixed; right: 24px; bottom: 8px; font-size: 11px; color: #67758e; z-index: 5; }
.app-modal { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,40,55,.2); }
.app-modal .modal-header { border-bottom: 1px solid #e6ebef; padding: 16px 18px; }
.app-modal .modal-title { font-weight: 700; color: #162033; }
.app-modal .modal-body { padding: 18px; }
.expected-columns { font-size: 11px; line-height: 1.5; color: #6c7787; background: #f7fafb; border: 1px solid #e5ecef; padding: 10px; border-radius: 7px; }
.detect-log { max-height: 180px; overflow: auto; background: #f7f9fa; border: 1px solid #e5eaee; border-radius: 6px; padding: 9px; font-size: 11px; line-height: 1.55; }
.progress-bar { background: var(--teal); }
@media (max-width: 900px) {
  .app-sidebar { transform: translateX(-235px); }
  .sidebar-toggle { left: 4px; }
  .app-main { margin-left: 16px; padding-right: 16px; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  .page-header { align-items: flex-start; gap: 10px; flex-direction: column; }
  .page-header h1 { font-size: 26px; }
  .filter-row { flex-wrap: wrap; }
}
