/* ==========================================================================
   01. TYPOGRAPHY & GLOBAL RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

html, body, p, a, h1, h2, h3, h4, h5, h6, li, ol, ul, table {
  font-family: "Bricolage Grotesque", sans-serif !important;
}

html {
  background: transparent !important;
}

body {
  font-family: "Rubik", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #121212;
}

tbody {
  color: #121212;
}

.error {
  color: red;
  font-size: 12px;
}

.text-danger {
  color: #c44141;
}

/* ==========================================================================
   02. THEME VARIABLES & COLOR PALETTE
   ========================================================================== */
:root {
  /* Modern Corporate Palette */
  --bs-primary: #1a33a2;
  --bs-primary-hover: #4338ca;
  --bs-secondary: #64748b;
  --bs-secondary-hover: #475569;
  --bs-success: #10b981;
  --bs-success-hover: #059669;
  --bs-info: #06b6d4;
  --bs-info-hover: #0891b2;
  --bs-warning: #f59e0b;
  --bs-warning-hover: #d97706;
  --bs-danger: #ef4444;
  --bs-danger-hover: #dc2626;
  --bs-light: #f8fafc;
  --bs-dark: #0f172a;
}

/* ==========================================================================
   03. BUTTONS, BADGES, LABELS, & UTILITIES
   ========================================================================== */
/* Generic Button Styles */
.btn {
  border-radius: 8px !important;
  padding: 8px 12px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary Button */
.btn-primary, .bg-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.btn-primary {
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
}

/* Secondary Button */
.btn-secondary, .btn-default, .bg-secondary {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  color: #ffffff !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-default:hover {
  background-color: var(--bs-secondary-hover) !important;
  border-color: var(--bs-secondary-hover) !important;
}

/* Success Button */
.btn-success, .bg-success {
  background-color: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
  color: #ffffff !important;
}

.btn-success {
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover, .btn-success:focus {
  background-color: var(--bs-success-hover) !important;
  border-color: var(--bs-success-hover) !important;
}

/* Info Button */
.btn-info, .bg-info {
  background-color: var(--bs-info) !important;
  border-color: var(--bs-info) !important;
  color: #ffffff !important;
}

.btn-info:hover, .btn-info:focus {
  background-color: var(--bs-info-hover) !important;
  border-color: var(--bs-info-hover) !important;
}

/* Warning Button */
.btn-warning, .bg-warning {
  background-color: var(--bs-warning) !important;
  border-color: var(--bs-warning) !important;
  color: #ffffff !important;
}

.btn-warning:hover, .btn-warning:focus {
  background-color: var(--bs-warning-hover) !important;
  border-color: var(--bs-warning-hover) !important;
}

/* Danger Button */
.btn-danger, .bg-danger {
  background-color: var(--bs-danger) !important;
  border-color: var(--bs-danger) !important;
  color: #ffffff !important;
}

.btn-danger {
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover, .btn-danger:focus {
  background-color: var(--bs-danger-hover) !important;
  border-color: var(--bs-danger-hover) !important;
}

/* Background Utility Override */
.bg-dark {
  background-color: var(--bs-dark) !important;
  color: #fff !important;
}

.bg-light {
  background-color: var(--bs-light) !important;
  color: #334155 !important;
}

.bg-primary-1 {
  background-color: #1e60aa;
  color: #fff;
}

/* Custom Background Colors */
.bg-merah {
  background-color: red;
  color: #fff;
}

.bg-kuning {
  background-color: #dada2d;
  color: #fff;
}

.bg-biru {
  background-color: blue;
  color: #fff;
}

.bg-hijau {
  background-color: green;
  color: #fff;
}

.bg-emas {
  background-color: #FFD700;
  color: #fff;
}

/* Badges & Labels */
.badge-primary, .label-primary {
  background-color: var(--bs-primary) !important;
}

.badge-secondary, .label-default {
  background-color: var(--bs-secondary) !important;
}

.badge-success, .label-success {
  background-color: var(--bs-success) !important;
}

.badge-info, .label-info {
  background-color: var(--bs-info) !important;
}

.badge-warning, .label-warning {
  background-color: var(--bs-warning) !important;
}

.badge-danger, .label-danger {
  background-color: var(--bs-danger) !important;
}

.badge, .label {
  padding: 5px 10px;
  font-weight: 500;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Flexbox Helpers */
.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

/* Alignment Helpers */
.right {
  text-align: right;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

/* Other Helpers */
.border-radius {
  border-radius: 10px;
}

.box-shadow {
  box-shadow: 1px 1px 8px #dedede;
}

.margin-top-min-6 {
  margin-top: -6px;
}

.img-circle {
  background: #fff;
  padding: 5px;
}

/* ==========================================================================
   04. LAYOUT, NAVBAR, SIDEBAR, & PANELS
   ========================================================================== */
/* Login & Auth Pages */
.login-box {
  width: 100%;
  max-width: 700px;
  margin: 10% auto 0;
  box-shadow: 0px 0px 5px 0px #ddd;
}

.login-register {
  background: url(../images/bg-5.png) center center/cover no-repeat !important;
}

.bg-ujiemisi, .bg-statusujiemisi {
  background: url(../images/bg-5.png) center center/cover no-repeat fixed !important;
}

/* Header & Navbar */
.navbar-header {
  background: linear-gradient(90deg, rgba(12, 93, 180, 1) 28%, rgba(11, 182, 216, 1) 100%);
}

.top-left-part {
  background: #004085;
  width: 160px;
  height: 34px;
  float: left;
  border-right: 0px;
  border-bottom-right-radius: 40px;
}

.navbar-default .navbar-nav>li>a {
  color: #3c3c3c;
  font-size: 16px;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a:hover {
  color: #fff;
  background-color: #1e60aa;
  border-radius: 5px;
  border-bottom-right-radius: 27px;
}

.bg-title {
  padding: 20px;
}

.bg-title .breadcrumb a {
  color: rgb(255 255 255 / 68%);
}

.bg-title .breadcrumb .active {
  color: #000b52;
}

/* Sidebar Navigation */
.sidebar {
  background: #fff;
  box-shadow: 0px 0px 4px 0px #797979;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#side-menu li {
  color: #d5d5d5;
}

#side-menu li a {
  color: #505050;
}

#side-menu .nav-second-level li a {
  color: #414141;
}

#side-menu>li.active, #side-menu>li>a.active {
  background: #004085;
  color: #ffffff;
  font-weight: 500;
}

#side-menu>li.active {}

#side-menu li.active>a {
  background: transparent;
  color: #fff;
}

/* #side-menu>li>a:hover, #side-menu>li>a:focus {
  border-radius: 12px;
} */
/* Panels & Cards */
.panel, .white-box {
  border-radius: 10px !important;
}

.panel-heading {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.panel-footer {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* ==========================================================================
   05. TABLES, FORMS, & SELECT2
   ========================================================================== */
/* Tables */
.table {
  margin-bottom: 0px;
}

.table>thead>tr>th, .table>tfoot>tr>th {
  font-size: 13px;
  vertical-align: middle;
  text-align: center;
}

.table>tbody>tr>td {
  font-size: 13px;
  vertical-align: top;
}

.table>tbody>tr>td, .table>tbody>tr>th,
.table>tfoot>tr>td, .table>tfoot>tr>th,
.table>thead>tr>td, .table>thead>tr>th {
  padding: 8px;
}

.table>thead, .table>thead>tr>td {
  color: #fff;
  top: 0px;
}

.color-table.primary-table thead th {
  background-color: #001e47;
  color: #fff;
}

.table-responsive {
  display: block;
  width: 100%;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 4px 12px #0000000d;
  background: #fff;
}

.table .rows {
  position: absolute;
}

.nowrap-w-1 {
  white-space: nowrap;
  width: 1%;
}

/* Hierarchy Tree / Parent Rows in Tables */
.table .parent-row td, .table .parent-row- td {
  background: #c8ebd9;
  cursor: pointer;
}

.table .lv-1 td, .table .lv-1- td {
  cursor: pointer;
  background: #ffe5db;
}

.table .lv-2 td, .table .lv-2- td {
  cursor: pointer;
  background: #fcfc99;
}

.table .lv-3 td, .table .lv-3- td {
  cursor: pointer;
  background: #b0effc;
}

.table .lv-4 td, .table .lv-4- td {
  cursor: pointer;
  background: #ededed;
}

/* Forms & Select2 */
.form-group, .form-horizontal .form-group {
  margin-bottom: 15px;
}

.form-control {
  border: 1px solid #bcbec1;
}

.select2 {
  width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-top: 5px;
  font-size: 14px;
  color: #56565b;
}

/* Custom Inputs */
.input-no-kendaraan {
  padding: 25px;
  color: #0a4098;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-no-kendaraan {
  padding: 15px !important;
  font-size: 14px;
}

.input-nopol {
  padding: 23px;
  font-size: 20px;
  font-weight: 500;
  color: #1e60aa;
  text-transform: uppercase;
}

.btn-nopol {
  padding: 7px 18px !important;
  font-size: 18px !important;
  margin-left: 10px !important;
}

.btn-file {
  margin-bottom: 5px;
}

/* ==========================================================================
   06. PAGINATION, SCROLLBAR, & MODAL
   ========================================================================== */
/* Pagination */
.pagination {
  display: flex;
  margin: 0px;
  line-height: 1;
  color: #B8E6F0;
  font-weight: 600;
}

.pagination a, .pagination span {
  padding: 6px 8px;
  border: 1px solid #B8E6F0;
  background-color: #B8E6F0;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.pagination li span {
  background: #2cabe3 !important;
  color: aliceblue !important;
}

.pagination span.active, .pagination a:hover, .pagination span.active:hover {
  border: 1px solid #2cabe3;
  background-color: #2cabe3;
  color: #B8E6F0;
  border-radius: 4px;
}

/* Modals & Alerts */
.modal {
  overflow-y: auto;
}

#add-new-event {
  z-index: 1062;
}

.myadmin-alert-top {
  z-index: 2000;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==========================================================================
   07. COMPONENT SPECIFIC
   ========================================================================== */
/* Calendar Component (FullCalendar) */
.fc-basic-view .fc-day-number {
  padding: 10px 15px !important;
}

.fc-event {
  border-radius: 0 !important;
  border: none !important;
  font-size: 13px !important;
  margin: 1px -1px 0 !important;
  padding: 5px !important;
  background: rgb(24 25 25 / 10%) !important;
}

.fc-toolbar {
  padding: 5px;
  margin-bottom: 0px !important;
}

.fc-unthemed .fc-today {
  background: #dbecf8 !important;
}

.fc-sat, .fc-sun {
  color: red;
}

.fc th, .fc td {
  padding: 2px !important;
}

.fc-past {
  background: #e6e6e6;
}

/* Leaflet Map Component */
.leaflet-div-icon {
  background: transparent !important;
  border: 0px !important;
}

.map-div-icon {
  border-radius: 50%;
  padding: 3px;
  width: 15px;
  height: 15px;
}

.bg-info-blue, .map-div-icon-blue {
  background: #5959FF !important;
}

.bg-info-red, .map-div-icon-red {
  background: #FF1E00 !important;
}

#bengkel-detail {
  position: absolute;
  z-index: 888;
  margin: 15px;
}

/* Sales Report Widget */
.sales-report {
  background: #e7f5ff;
  border-left: 5px solid #1e60aa;
  border-radius: 10px;
  margin: 0px;
}

/* Section Tabs Wrap */
.content-wrap section {
  display: none;
  margin: 0 auto;
  padding: 10px 0px;
  min-height: 0;
}

/* Dashboard Emisi Components */
.emisi-dashboard {
  background: #f5f7fb;
}

.emisi-dashboard .panel {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  transition: .25s;
}

.emisi-dashboard .panel:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.emisi-dashboard .panel-heading {
  border: none;
  font-weight: 600;
  padding: 14px 18px;
}

.emisi-header {
  margin-bottom: 20px;
}

.emisi-header h3 {
  margin-top: 0;
  font-weight: 700;
}

.emisi-map .panel-heading {
  background: #2980b9;
  color: #fff;
}

.emisi-map-body {
  padding: 0 !important;
}

#mapid {
  height: 550px;
  width: 100%;
}

.emisi-summary .panel-heading {
  background: #34495e;
  color: #fff;
}

.emisi-summary-item {
  text-align: center;
  padding: 10px;
}

.emisi-number {
  font-size: 30px;
  font-weight: 700;
}

.emisi-label {
  color: #777;
  text-transform: uppercase;
  font-size: 11px;
}

.emisi-kpi .panel-heading {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.emisi-kpi h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.emisi-info .panel-heading {
  background: #3498db;
}

.emisi-success .panel-heading {
  background: #2ecc71;
}

.emisi-warning .panel-heading {
  background: #f39c12;
}

.emisi-primary .panel-heading {
  background: #34495e;
}

.emisi-chart .panel-heading {
  background: #fff;
}

#graph-category {
  height: 400px;
}

#graph-status, #graph-fuel {
  height: 135px;
}

.emisi-detail .panel-heading {
  background: #16a085;
  color: #fff;
}

/* Dashboard Cards & KPI Mini-Cards */
.emisi-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.emisi-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 22px;
}

.emisi-subtitle {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 14px;
}

.emisi-label {
  font-size: 12px;
  font-weight: 600;
  color: #7f8c8d;
  margin-bottom: 6px;
  display: block;
}

.emisi-select-fixed {
  width: 100% !important;
}

.emisi-btn-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.emisi-btn-fixed {
  font-weight: 500;
  min-width: 95px;
}

.emisi-btn-reset {
  background-color: #f8f9fa;
  border-color: #dcdde1;
  color: #2f3640;
}

.emisi-mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  transition: .25s;
}

.emisi-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.emisi-mini-icon {
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  margin: 0 auto 12px;
  font-size: 24px;
}

.emisi-mini-icon i {
  margin-top: 16px;
}

.emisi-mini-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.emisi-mini-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #777;
  min-height: 34px;
}

.emisi-card-danger .emisi-mini-icon {
  background: #fdeaea;
  color: #e74c3c;
}

.emisi-card-warning .emisi-mini-icon {
  background: #fff4de;
  color: #f39c12;
}

.emisi-card-secondary .emisi-mini-icon {
  background: #eef2f7;
  color: #5d6d7e;
}

/* Booking Panel */
.panel-booking {
  max-height: 300px;
  overflow: auto !important;
}

.booking-panel {
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.booking-main-header {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.booking-main-header .box-title {
  font-weight: 600;
  color: #2c3e50;
}

.booking-main-header .btn {
  border-radius: 20px;
  padding: 5px 12px;
}

.booking-scroll {
  height: 320px;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
}

.booking-scroll::-webkit-scrollbar {
  width: 6px;
}

.booking-scroll::-webkit-scrollbar-thumb {
  background: #d6dce5;
  border-radius: 20px;
}

.booking-card {
  background: #fff;
  border: 1px solid #edf1f5;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  transition: .25s;
}

.booking-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.booking-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.booking-subtitle {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 2px;
}

.booking-percentage {
  font-size: 22px;
  font-weight: 700;
  color: #27ae60;
  line-height: 1;
}

.booking-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-qty {
  font-size: 12px;
  color: #777;
}

.booking-total {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.booking-progress {
  margin-bottom: 0;
  height: 8px;
  border-radius: 20px;
  background: #edf1f5;
  overflow: hidden;
}

.booking-progress .progress-bar {
  border-radius: 20px;
}

/* ==========================================================================
   08. RESPONSIVE STYLES (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 992px) {
  .modal-xl {
    width: 1200px;
  }

  .header-sx {
    display: block;
  }
}

@media (min-width: 768px) {
  #side-menu .nav-second-level>li>a {
    width: auto;
    min-width: 250px;
  }

  .header-sx {
    display: none;
  }
}

@media (max-width: 991px) {
  #mapid {
    height: 320px;
  }

  #graph-category, #graph-status, #graph-fuel {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .mt-cont {
    margin-top: 50px;
  }

  .header-md {
    display: none;
  }

  .bg-eee {
    background: #eee !important;
  }

  .booking-scroll {
    height: 260px;
  }

  .booking-percentage {
    font-size: 18px;
  }

  .booking-total {
    font-size: 13px;
  }
}