/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* =============================================================
 * SPTJM Login Page — Reset Sneat Template Defaults
 * Memastikan halaman login tidak terpengaruh style global Sneat
 * ============================================================= */

/* Netralkan background body Sneat saat di halaman login */
body:has(.sptjm-login-page) {
  background: transparent !important;
  overflow: hidden;
}

/* Pastikan .sptjm-input tidak terkena style .form-control dari Bootstrap/Sneat */
.sptjm-input.form-control,
.sptjm-input {
  line-height: normal !important;
}

/* Hapus shadow bawaan Sneat pada .authentication-inner */
.authentication-wrapper.authentication-basic .card {
  box-shadow: none;
}

/* Pastikan html tidak ada zoom override dari commonMaster saat halaman login */
body:has(.sptjm-login-page) html {
  zoom: 1 !important;
}

/* =============================================================
 * SPTJM Admin Dashboard & Layout Styles (Figma Redesign)
 * ============================================================= */

/* Main Background */
.layout-page, .content-wrapper {
  background-color: #F8FAFC !important;
}

/* Sidebar Navbar */
.bg-menu-theme {
  background-color: #ffffff !important;
  border-right: 1px solid #E2E8F0;
}

.bg-navbar-theme {
  background-color: #ffffff !important;
  border-bottom: 1px solid #E2E8F0;
}

.menu-inner > .menu-item.active > .menu-link {
  background-color: #F1F5F9 !important;
  color: #1A56DB !important;
  font-weight: 600;
  border-right: 4px solid #1A56DB;
  border-radius: 0;
}

.menu-inner > .menu-item.active > .menu-link i {
  color: #1A56DB !important;
}

.menu-inner > .menu-item:not(.active) > .menu-link {
  color: #64748B !important;
}

.menu-inner > .menu-item:not(.active) > .menu-link i {
  color: #94A3B8 !important;
}

/* Dashboard Stat Cards */
.sptjm-stat-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #dbeafe !important;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.05) !important;
  padding: 1.5rem 1.75rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
}

.sptjm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.12) !important;
}

.sptjm-stat-title {
  color: #64748B;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-bottom: 0.25rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sptjm-stat-value {
  font-size: 1.65rem !important;
  font-weight: 700;
  line-height: 1.1;
}

.val-primary { color: #1A56DB; }
.val-success { color: #10B981; }
.val-danger { color: #EF4444; }
.val-warning { color: #D97706; }

.sptjm-stat-icon-wrapper {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem !important;
  flex-shrink: 0;
}

.icon-bg-primary { background-color: #EFF6FF; color: #1A56DB; }
.icon-bg-success { background-color: #ECFDF5; color: #10B981; }
.icon-bg-danger { background-color: #FEF2F2; color: #EF4444; }
.icon-bg-warning { background-color: #FFFBEB; color: #D97706; }

/* Table Card */
.sptjm-table-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.sptjm-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sptjm-table-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sptjm-table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sptjm-search-input {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

/* Custom Table Styles inside Card */
.sptjm-table-card .table {
  margin-bottom: 0;
}
.sptjm-table-card .table > :not(caption) > * > * {
  padding: 1rem 1.5rem;
  color: #334155;
  border-bottom-color: #F1F5F9;
  vertical-align: middle;
}

.sptjm-table-card .table thead th {
  background-color: #F8FAFC;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E2E8F0;
}

.sptjm-link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}
.sptjm-link:hover {
  text-decoration: underline;
}

.sptjm-badge-active {
  background-color: #EFF6FF;
  color: #1A56DB;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* DataTables Overrides for SPTJM Table */
.sptjm-table-card .dataTables_wrapper .row {
  padding: 1rem 1.5rem;
}
.sptjm-table-card .dataTables_wrapper .row:first-child {
  display: none; /* Hide default length and search since we use custom or Figma design */
}
.sptjm-table-card .dataTables_info {
  color: #64748B;
  font-size: 0.875rem;
}
.sptjm-table-card .page-item.active .page-link {
  background-color: #1A56DB;
  border-color: #1A56DB;
}
