
/* DASHBOARD PRO CLEANUP FINAL
   Berlaku untuk dashboard admin/guru/pembeli tanpa mengubah logic PHP.
*/
:root{
  --dash-navy:#08213f;
  --dash-sidebar:#082b49;
  --dash-sidebar2:#06213a;
  --dash-blue:#1677ff;
  --dash-sky:#0ea5e9;
  --dash-green:#10b981;
  --dash-soft:#f4f9ff;
  --dash-line:#d9e8f7;
  --dash-muted:#64748b;
  --dash-card:#ffffff;
  --dash-shadow:0 18px 48px rgba(8,33,63,.10);
}

*{box-sizing:border-box}
body{
  background:#eef5fb;
  color:var(--dash-navy);
  overflow-x:hidden;
}

.app-shell,
.dashboard-shell,
.layout,
.wrapper,
.main-wrapper{
  min-height:100vh;
}

.sidebar,
.app-sidebar,
.side-menu,
.sidenav,
.left-sidebar,
aside.sidebar{
  background:linear-gradient(180deg,var(--dash-sidebar) 0%,var(--dash-sidebar2) 100%) !important;
  color:#fff !important;
  border-right:0 !important;
  box-shadow:8px 0 32px rgba(8,33,63,.10);
}

.sidebar a,
.app-sidebar a,
.side-menu a,
.sidenav a,
.left-sidebar a,
aside.sidebar a{
  color:rgba(255,255,255,.88) !important;
  text-decoration:none !important;
}

.sidebar a:hover,
.sidebar a.active,
.app-sidebar a:hover,
.app-sidebar a.active,
.side-menu a:hover,
.side-menu a.active,
.sidenav a:hover,
.sidenav a.active,
.left-sidebar a:hover,
.left-sidebar a.active{
  color:#fff !important;
  background:rgba(255,255,255,.12) !important;
  border-radius:14px !important;
}

.sidebar .brand,
.app-sidebar .brand,
.logo-area,
.sidebar-brand{
  padding:20px 18px !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.sidebar img,
.app-sidebar img,
.logo-area img{
  max-width:54px;
  border-radius:16px;
}

.main,
.app-main,
.content,
.main-content,
.page-content,
.dashboard-content{
  background:#eef5fb !important;
}

.topbar,
.app-topbar,
.header,
.page-header,
.content-header{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:blur(14px);
  border:1px solid rgba(216,232,247,.92) !important;
  border-radius:26px !important;
  box-shadow:var(--dash-shadow) !important;
  margin-bottom:18px !important;
}

.card,
.box,
.panel,
.widget,
.stat-card,
.dashboard-card,
.table-card,
.form-card{
  background:#fff !important;
  border:1px solid var(--dash-line) !important;
  border-radius:24px !important;
  box-shadow:var(--dash-shadow) !important;
}

.card-header,
.box-header,
.panel-heading{
  background:linear-gradient(180deg,#fff,#f8fbff) !important;
  border-bottom:1px solid var(--dash-line) !important;
  border-radius:24px 24px 0 0 !important;
  padding:16px 18px !important;
}

.card-body,
.box-body,
.panel-body{
  padding:18px !important;
}

h1,h2,h3{
  letter-spacing:-.035em;
}

.page-title,
.content-title{
  font-weight:1000 !important;
  color:#08213f !important;
}

/* Buttons */
.btn,
button,
input[type="submit"]{
  border-radius:14px;
  font-weight:900;
}

.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary{
  background:linear-gradient(135deg,#2196ff,#0b75ef) !important;
  border-color:#0b75ef !important;
  box-shadow:0 14px 28px rgba(37,99,235,.22);
}

.btn-success{
  background:linear-gradient(135deg,#10b981,#059669) !important;
  border-color:#059669 !important;
}

.btn-warning{
  background:linear-gradient(135deg,#f59e0b,#f97316) !important;
  border-color:#f97316 !important;
  color:#fff !important;
}

.btn-danger{
  background:linear-gradient(135deg,#ef4444,#dc2626) !important;
  border-color:#dc2626 !important;
}

/* Forms */
input,
select,
textarea,
.form-control{
  border:1px solid #c9daf0 !important;
  border-radius:14px !important;
  min-height:46px;
  box-shadow:none !important;
}

textarea.form-control,
textarea{
  min-height:110px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus{
  border-color:#1677ff !important;
  box-shadow:0 0 0 4px rgba(22,119,255,.10) !important;
}

label{
  font-weight:850;
  color:#223854;
}

.form-row,
.row.form-row,
.form-grid{
  gap:14px;
}

/* Tables */
.table-responsive{
  border:1px solid var(--dash-line);
  border-radius:20px;
  overflow:auto;
  background:#fff;
}

table{
  width:100%;
}

.table,
table.table{
  margin-bottom:0;
}

.table th,
table th{
  background:#f8fbff !important;
  color:#415a77 !important;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:1000 !important;
  border-bottom:1px solid var(--dash-line) !important;
  white-space:nowrap;
}

.table td,
table td{
  vertical-align:middle !important;
  border-color:#edf2f7 !important;
  color:#173456;
  font-weight:650;
}

/* Dashboard buyer/product cards */
.ota-product-grid,
.buyer-grid,
.ticket-grid,
.hotel-grid,
.tour-grid,
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.ota-product-card,
.buyer-card,
.ticket-card,
.hotel-card,
.tour-card{
  background:#fff;
  border:1px solid var(--dash-line);
  border-radius:24px;
  box-shadow:var(--dash-shadow);
  padding:18px;
}

/* Prevent ugly text overflow */
.sidebar,
.app-sidebar,
.side-menu,
.sidenav,
.left-sidebar,
.card,
.box,
.panel,
.widget,
.table,
.form-control,
button,
.btn{
  word-break:normal;
}

.badge,
.status,
.label{
  border-radius:999px !important;
  padding:6px 10px !important;
  font-weight:950 !important;
}

/* Print buttons / actions */
.action-buttons,
.table-actions,
.btn-group{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Buyer dashboard specific */
.buyer-hero,
.ota-hero-dashboard{
  background:linear-gradient(135deg,#0b73f6 0%,#04b6a8 100%) !important;
  color:#fff !important;
  border-radius:28px !important;
  padding:28px !important;
  box-shadow:0 22px 60px rgba(8,33,63,.16);
}

.buyer-hero h1,
.ota-hero-dashboard h1{
  color:#fff !important;
}

/* Mobile layout */
@media(max-width: 992px){
  .sidebar,
  .app-sidebar,
  .side-menu,
  .sidenav,
  .left-sidebar,
  aside.sidebar{
    position:relative !important;
    width:100% !important;
    min-height:auto !important;
    border-radius:0 0 24px 24px !important;
  }

  .main,
  .app-main,
  .content,
  .main-content,
  .page-content,
  .dashboard-content{
    margin-left:0 !important;
    width:100% !important;
    padding:14px !important;
  }

  .topbar,
  .app-topbar,
  .header,
  .page-header,
  .content-header{
    border-radius:22px !important;
    padding:16px !important;
  }

  .ota-product-grid,
  .buyer-grid,
  .ticket-grid,
  .hotel-grid,
  .tour-grid,
  .dashboard-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width: 640px){
  body{
    font-size:14px;
  }

  .card,
  .box,
  .panel,
  .widget,
  .stat-card,
  .dashboard-card,
  .table-card,
  .form-card{
    border-radius:20px !important;
  }

  .card-body,
  .box-body,
  .panel-body{
    padding:14px !important;
  }

  .topbar,
  .app-topbar,
  .header,
  .page-header,
  .content-header{
    margin-bottom:14px !important;
  }

  h1{font-size:26px !important}
  h2{font-size:22px !important}
  h3{font-size:19px !important}

  .row{
    margin-left:0 !important;
    margin-right:0 !important;
  }

  [class*="col-"]{
    padding-left:0 !important;
    padding-right:0 !important;
    width:100% !important;
    max-width:100% !important;
    flex:0 0 100% !important;
  }

  .btn,
  button,
  input[type="submit"]{
    min-height:44px;
  }

  .action-buttons,
  .table-actions,
  .btn-group{
    display:grid !important;
    grid-template-columns:1fr;
  }

  .action-buttons .btn,
  .table-actions .btn,
  .btn-group .btn{
    width:100%;
  }

  .table-responsive,
  .public-table-wrap{
    border-radius:16px;
  }
}

/* V31 FIX DASHBOARD SUPERADMIN - presisi, tidak hancur, semua komponen V30 diberi layout */
.main:not(.public-main){
  padding:24px 28px 42px !important;
  max-width:calc(100vw - 300px);
}
.app-shell:not(.public-shell){
  display:flex;
  align-items:stretch;
  background:linear-gradient(120deg,#eef6ff 0%,#f7fbff 55%,#eff8ff 100%);
}
aside.sidebar{
  width:300px !important;
  min-width:300px !important;
  height:100vh !important;
  position:sticky !important;
  top:0 !important;
  overflow-y:auto !important;
  scrollbar-width:thin;
}
.commercial-topbar{
  min-height:92px;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:18px 22px !important;
  max-width:1450px;
  margin-inline:auto;
}
.mobile-menu-btn{display:none}
.topbar-brand{display:flex;align-items:center;gap:14px;min-width:0}
.topbar-brand img{width:54px;height:54px;border-radius:16px;object-fit:cover;box-shadow:0 12px 26px rgba(14,116,232,.20)}
.topbar-brand h1{margin:0 !important;font-size:24px !important;line-height:1.05;color:#08213f;font-weight:1000}
.topbar-brand p{margin:5px 0 0 !important;color:#64748b;font-weight:800;font-size:14px}
.user-pill{display:flex;flex-direction:column;align-items:flex-end;gap:2px;background:#f4f9ff;border:1px solid #d7e8fa;border-radius:18px;padding:12px 16px;min-width:190px;color:#08213f;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.user-pill b{font-weight:1000}.user-pill span{font-size:12px;color:#0b63ce;font-weight:900;text-transform:uppercase}
.alert{max-width:1450px;margin:0 auto 18px !important;border-radius:18px !important;padding:15px 18px !important;font-weight:900;line-height:1.55}
.alert.success{background:#e9fff3;border:1px solid #a7f3d0;color:#047857}.alert.error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}.alert.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}

.superadmin-control-hero{
  max-width:1450px;
  margin:0 auto 20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:18px;
  align-items:stretch;
  background:linear-gradient(135deg,#08213f 0%,#0b5fd3 58%,#13b9d6 100%);
  border:1px solid rgba(255,255,255,.44);
  border-radius:30px;
  padding:30px;
  color:#fff;
  box-shadow:0 28px 70px rgba(8,33,63,.18);
  position:relative;
  overflow:hidden;
}
.superadmin-control-hero:before{content:"";position:absolute;right:-90px;top:-120px;width:360px;height:360px;border-radius:999px;background:rgba(255,255,255,.13)}
.superadmin-control-hero:after{content:"";position:absolute;right:120px;bottom:-140px;width:260px;height:260px;border-radius:999px;background:rgba(125,211,252,.18)}
.superadmin-control-hero>*{position:relative;z-index:1}
.superadmin-control-hero .eyebrow{display:inline-flex;align-items:center;width:max-content;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.26);color:#e0f2fe !important;font-size:12px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase;margin-bottom:12px}
.superadmin-control-hero h2{margin:0 0 10px !important;color:#fff !important;font-size:clamp(28px,3vw,44px) !important;line-height:1.02;font-weight:1000;letter-spacing:-.055em}
.superadmin-control-hero p{margin:0 !important;max-width:900px;color:#eaf6ff;font-size:16px;line-height:1.7;font-weight:700}
.pro-hero-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.pro-hero-pills span{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);color:#fff;font-weight:900;font-size:13px;white-space:nowrap}
.control-user-card{align-self:center;display:flex;flex-direction:column;gap:7px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.7);border-radius:24px;padding:22px;color:#08213f;box-shadow:0 22px 48px rgba(0,0,0,.13)}
.control-user-card small{font-weight:1000;color:#64748b;text-transform:uppercase;letter-spacing:.07em}.control-user-card strong{font-size:22px;color:#0b63ce}.control-user-card span{font-size:13px;font-weight:900;color:#475569}

.control-stat-grid{
  max-width:1450px;
  margin:0 auto 20px;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.control-stat-grid article{
  background:rgba(255,255,255,.96);
  border:1px solid #d8e8f7;
  border-radius:22px;
  padding:17px;
  box-shadow:0 18px 42px rgba(8,33,63,.08);
  min-height:116px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:7px;
}
.control-stat-grid article small{display:block;color:#64748b;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.04em;line-height:1.3}
.control-stat-grid article strong{display:block;color:#08213f;font-size:30px;font-weight:1000;line-height:1}
.control-stat-grid article span{display:inline-flex;width:max-content;max-width:100%;padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:950;line-height:1.2}

.control-grid{
  max-width:1450px;
  margin:0 auto 20px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:20px;
  align-items:start;
}
.control-panel{
  background:#fff;
  border:1px solid #d8e8f7;
  border-radius:28px;
  padding:24px;
  box-shadow:0 20px 52px rgba(8,33,63,.09);
}
.control-panel.big{min-height:100%}.control-panel h3{margin:0 0 14px !important;color:#08213f;font-size:23px !important;font-weight:1000}.control-panel p{color:#415a77;font-weight:700;line-height:1.6;margin:0}
.control-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.control-title>span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#dff4ff,#eff6ff);font-size:24px;border:1px solid #cfe5fb}.control-title h3{margin-bottom:6px !important}
.practice-roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.practice-roadmap div{background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #dceafd;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:8px;min-height:150px}
.practice-roadmap b{width:38px;height:38px;border-radius:13px;background:#1677ff;color:#fff;display:grid;place-items:center;font-size:18px;box-shadow:0 12px 24px rgba(22,119,255,.22)}
.practice-roadmap span{font-weight:1000;color:#08213f}.practice-roadmap small{font-weight:700;color:#64748b;line-height:1.45}
.pro-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pro-action-list a{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center;padding:14px;border-radius:18px;border:1px solid #d8e8f7;background:#f8fbff;text-decoration:none;color:#08213f;transition:.18s ease;min-height:82px}
.pro-action-list a:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(8,33,63,.10);background:#fff}.pro-action-list a span{grid-row:1/3;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#eaf5ff;font-size:20px}.pro-action-list a b{font-weight:1000;white-space:normal;line-height:1.18}.pro-action-list a small{font-weight:700;color:#64748b;line-height:1.25}

.pro-product-grid.media-practice-grid{max-width:1450px;margin:0 auto 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.pro-product-grid.media-practice-grid article{background:#fff;border:1px solid #d8e8f7;border-radius:24px;padding:20px;box-shadow:0 18px 44px rgba(8,33,63,.08);min-height:180px}.pro-product-grid.media-practice-grid article>span{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;background:#eff6ff;font-size:24px;margin-bottom:14px}.pro-product-grid.media-practice-grid h3{margin:0 0 8px !important;color:#08213f;font-size:20px !important}.pro-product-grid.media-practice-grid p{margin:0;color:#415a77;font-weight:700;line-height:1.55}

/* Sidebar lebih rapi */
.side-brand{display:flex;align-items:center;gap:12px;padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.09)}
.side-brand img{width:50px;height:50px;border-radius:16px;object-fit:cover}.side-brand b{display:block;color:#fff;font-size:16px;line-height:1.15}.side-brand span{display:block;color:rgba(255,255,255,.70);font-size:11px;font-weight:800;line-height:1.35;margin-top:3px}.side-nav{padding:12px 12px 22px}.menu-group{margin:0 0 16px}.menu-title{color:#b8d8f2;font-weight:1000;font-size:12px;text-transform:uppercase;letter-spacing:.045em;margin:16px 8px 8px}.industry-side-nav a{display:grid !important;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 10px;align-items:center;padding:11px 12px;border-radius:16px;margin:4px 0}.industry-side-nav a>span{grid-row:1/3;width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.10)}.industry-side-nav a b{font-size:14px;line-height:1.18;white-space:normal}.industry-side-nav a small{font-size:11px;line-height:1.25;color:rgba(255,255,255,.72);font-weight:700}

@media(max-width:1280px){.control-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.control-grid{grid-template-columns:1fr}.pro-product-grid.media-practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main:not(.public-main){max-width:calc(100vw - 280px)}aside.sidebar{width:280px !important;min-width:280px !important}}
@media(max-width:992px){.app-shell:not(.public-shell){display:block}.main:not(.public-main){max-width:100%;padding:14px !important}aside.sidebar{position:fixed !important;left:-310px;top:0;z-index:999;width:300px !important;min-width:300px !important;transition:.2s ease}.mobile-menu-btn{display:grid;width:46px;height:46px;border-radius:14px;border:1px solid #d8e8f7;background:#fff;color:#08213f}.commercial-topbar{border-radius:20px !important}.control-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.superadmin-control-hero{grid-template-columns:1fr;padding:22px}.control-user-card{align-self:stretch}.practice-roadmap{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.commercial-topbar{align-items:flex-start !important}.topbar-brand h1{font-size:20px !important}.topbar-brand p{font-size:12px}.user-pill{display:none}.control-stat-grid,.practice-roadmap,.pro-action-list,.pro-product-grid.media-practice-grid{grid-template-columns:1fr}.superadmin-control-hero h2{font-size:30px !important}.superadmin-control-hero{border-radius:24px;padding:18px}.control-panel{border-radius:22px;padding:18px}.pro-hero-pills span{width:100%;justify-content:center}.alert{border-radius:14px !important}}
