:root{--bs-primary:#6046df;--bs-primary-rgb:96,70,223;--nsofts-primary:#6046df}

/* Typography & Global Font Consistency */
html,body,button,input,select,textarea{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body,body[data-theme],html body{
  background:#f7f9fb!important;
  color:#171b29!important;
  font-size:13px!important;
  line-height:1.45;
  margin:0;
  padding:0;
}

/* Eliminate layout/text shifting and jumping on page load and clicks */
#nsofts_main,#nsofts_footer,#nsofts_header,#nsofts_sidebar{
  transition:none!important;
  -webkit-transition:none!important;
  animation:none!important;
}

/* Sidebar & Navigation */
#nsofts_sidebar.mega-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:240px;
  background:#111727!important;
  border-right:1px solid #1f2737;
  display:flex;
  flex-direction:column;
  transform:none;
  z-index:1050;
  padding:0;
  border-radius:0!important;
}
.mega-brand{
  height:68px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 20px;
  color:white!important;
  font-size:16px;
  font-weight:700;
  border-bottom:1px solid #1f2737;
  text-decoration:none;
  letter-spacing:-0.2px;
}
.brand-icon{
  background:#6046df;
  border-radius:9px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  font-size:20px;
  flex-shrink:0;
}
.mega-brand-logo{
  width:32px;
  height:32px;
  max-width:32px;
  max-height:32px;
  object-fit:contain;
  border-radius:8px;
  flex-shrink:0;
}

/* Menu Scrollbar - Matches sidebar background exactly */
#nsofts_sidebar .nsofts-sidebar-nav{
  padding:10px 12px;
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#111727 #111727;
}
#nsofts_sidebar .nsofts-sidebar-nav::-webkit-scrollbar{width:4px;background:#111727}
#nsofts_sidebar .nsofts-sidebar-nav::-webkit-scrollbar-track{background:#111727}
#nsofts_sidebar .nsofts-sidebar-nav::-webkit-scrollbar-thumb{background:#111727;border-radius:4px}
#nsofts_sidebar .nsofts-sidebar-nav:hover::-webkit-scrollbar-thumb{background:#1d2538}
.nsofts-sidebar-nav ul{padding:0;margin:0;list-style:none}
.nav-caption{
  font-size:9.5px;
  letter-spacing:1px;
  font-weight:700;
  color:#6c7689;
  padding:15px 12px 6px;
  text-transform:uppercase;
}
#nsofts_sidebar .nsofts-sidebar-nav__link{
  color:#9aa2b1!important;
  border-radius:8px;
  margin:2px 0;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
  font-weight:500;
  text-decoration:none!important;
  transition:background-color .15s ease, color .15s ease;
}
#nsofts_sidebar .nsofts-sidebar-nav__link.active,
#nsofts_sidebar .nsofts-sidebar-nav__link:hover{
  background:#20283a!important;
  color:#ffffff!important;
}
.nsofts-sidebar-nav__icon{
  font-size:17px;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.sidebar-bottom{
  border-top:1px solid #1f2737;
  padding:10px 12px;
  background:#0f1523;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.sidebar-bottom a{
  color:#9aa2b1!important;
  border-radius:8px;
  margin:2px 0;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
  font-weight:500;
  text-decoration:none!important;
  transition:background-color .15s ease, color .15s ease;
}
.sidebar-bottom a i{
  font-size:17px;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.sidebar-bottom a:hover,
.sidebar-bottom a.active{
  background:#20283a!important;
  color:#ffffff!important;
}

/* Header */
#nsofts_header.mega-header{
  left:240px;
  width:calc(100% - 240px);
  height:62px;
  padding:0 26px;
  background:white!important;
  border-bottom:1px solid #e7eaf0;
  box-shadow:none;
  display:flex;
  gap:16px;
  align-items:center;
  top:0!important;
  z-index:1000;
}
.header-context{
  color:#858e9d;
  font-size:12.5px;
  display:flex;
  gap:8px;
  align-items:center;
}
.header-context span{color:#4b5363;font-weight:500}
.header-profile{
  margin-left:auto;
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:#232936;
  font-size:12.5px;
}
.header-profile img{width:32px;height:32px;border-radius:50%}
.header-profile small{display:block;color:#858e9d;font-size:11px}
.menu-toggle{display:none;border:0;background:transparent;font-size:22px;color:#1e2533;cursor:pointer}

/* Main Container */
#nsofts_main{
  margin-left:240px!important;
  padding:84px 26px 30px!important;
  margin-top:0!important;
  background:transparent;
  min-height:calc(100vh - 50px);
}
.nsofts-container{max-width:1440px;margin:auto;padding:0!important}
#nsofts_footer{
  margin-left:240px!important;
  background:transparent!important;
  color:#8a91a1;
  border-top:1px solid #e6e9ef;
  padding:14px 26px;
  font-size:12px;
}

/* Headings */
h1,h2,h3,h4,h5,h6{color:#171b29!important;letter-spacing:-0.2px}
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  gap:12px;
}
.page-heading h1{
  font-size:21px!important;
  font-weight:700;
  margin:0 0 3px;
  line-height:1.25;
}
.muted,.text-muted{color:#858c99!important}
.page-heading p{margin:0;color:#7e8695;font-size:12.5px}

/* Cards & Statistics */
.card,.nsofts-card-light{
  background:white!important;
  border:1px solid #e5e8ee!important;
  border-radius:12px!important;
  box-shadow:0 2px 8px rgba(15, 23, 42, 0.03)!important;
  color:#252b38;
}
.card-header{
  background:white!important;
  border-bottom:1px solid #edf0f4!important;
  border-radius:12px 12px 0 0!important;
  padding:14px 18px!important;
  font-size:13px;
}
.card-body{padding:20px}
.stat-card{padding:18px 20px;height:140px}
.stat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.stat-icon{
  width:36px;
  height:36px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#eee9fd;
  color:#6046df;
  font-size:19px;
}
.stat-icon-purple{background:#eee9fd!important;color:#6046df!important}
.stat-icon-blue{background:#e0f2fe!important;color:#0284c7!important}
.stat-icon-default{background:#f1f5f9!important;color:#475569!important}
.stat-icon-amber{background:#fef3c7!important;color:#d97706!important}
.stat-icon-success{background:#e7f7ef!important;color:#229e61!important}
.stat-icon-danger{background:#fee2e2!important;color:#dc2626!important}
.stat-value{font-size:24px!important;font-weight:700;line-height:1.15}
.stat-label{margin-top:6px;color:#818998;font-size:12px;font-weight:500}
.tag{
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:14px;
  color:#6046df;
  background:#f2effd;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
}
.tag.purple{color:#6046df;background:#f2effd}
.tag.blue{color:#0284c7;background:#e0f2fe}
.tag.amber{color:#b45309;background:#fef3c7}
.tag.default{color:#475569;background:#f1f5f9}
.tag.success{color:#15803d;background:#dcfce7}
.tag.danger{color:#b91c1c;background:#fee2e2}
.section-title{font-size:15px!important;font-weight:700;margin:0 0 14px;color:#1e2533}

/* Section Link (e.g. Ver todos) */
.section-link{
  color:#6046df;
  font-weight:600;
  font-size:12.5px;
  text-decoration:none!important;
  display:inline-flex;
  align-items:center;
  gap:4px;
  transition:color .15s ease;
}
.section-link:hover{color:#4932c5}

/* Action Buttons in Tables */
.table-action-btn{
  width:30px;
  height:30px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f4f6fb;
  color:#556073;
  border:1px solid #e1e5f0;
  text-decoration:none!important;
  font-size:16px;
  transition:all .15s ease;
}
.table-action-btn:hover{background:#6046df;color:#ffffff;border-color:#6046df}
.provider-avatar{
  width:36px;
  height:36px;
  border-radius:8px;
  background:#f0edfe;
  color:#6046df;
  display:grid;
  place-items:center;
  font-size:18px;
  flex-shrink:0;
}

/* Buttons */
.btn{
  border-radius:8px;
  padding:8px 15px;
  font-weight:600;
  font-size:12.5px;
  line-height:1.4;
  transition:all .15s ease;
}
.btn-primary{
  background:#6046df!important;
  border-color:#6046df!important;
  color:white!important;
  box-shadow:0 3px 10px rgba(96, 70, 223, 0.2)!important;
}
.btn-primary:hover{
  background:#4f35cf!important;
  border-color:#4f35cf!important;
  box-shadow:0 4px 14px rgba(96, 70, 223, 0.3)!important;
}
.btn-light,.btn-outline-secondary{
  border:1px solid #dce1eb!important;
  background:#fff!important;
  color:#4b5563!important;
  border-radius:8px;
  padding:7px 14px;
  font-weight:550;
  font-size:12.5px;
  text-decoration:none!important;
}
.btn-light:hover,.btn-outline-secondary:hover{
  background:#f8fafc!important;
  color:#1e293b!important;
  border-color:#cbd5e1!important;
}
.btn-lg{padding:10px 20px;font-size:13px}
.btn-sm{padding:5px 10px;font-size:11.5px}
.btn-outline-danger{
  color:#dc2626!important;
  border:1px solid #fecaca!important;
  background:#fff5f5!important;
  font-weight:550;
  border-radius:8px;
  transition:all .15s ease;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.btn-outline-danger:hover{
  color:#ffffff!important;
  background:#dc2626!important;
  border-color:#dc2626!important;
}
.btn-outline-warning{
  color:#b45309!important;
  border:1px solid #fde68a!important;
  background:#fffbeb!important;
  font-weight:550;
  border-radius:8px;
  transition:all .15s ease;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.btn-outline-warning:hover{
  color:#ffffff!important;
  background:#d97706!important;
  border-color:#d97706!important;
}
.btn-outline-success{
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  background:#f0fdf4!important;
  font-weight:550;
  border-radius:8px;
  transition:all .15s ease;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.btn-outline-success:hover{
  color:#ffffff!important;
  background:#16a34a!important;
  border-color:#16a34a!important;
}

/* Forms & Inputs */
.form-panel{
  max-width:820px;
  border-radius:14px!important;
  box-shadow:0 3px 16px rgba(15, 23, 42, 0.04)!important;
}
.form-label{
  font-weight:600;
  color:#2e3545;
  margin-bottom:6px;
  font-size:12.5px;
  display:block;
}
.form-control,.form-select{
  border:1.5px solid #dce1eb!important;
  border-radius:8px;
  background:#fff!important;
  color:#1e2533!important;
  min-height:40px!important;
  font-size:13px!important;
  padding:8px 12px!important;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus,.form-select:focus{
  box-shadow:0 0 0 3px rgba(96, 70, 223, 0.14)!important;
  border-color:#6046df!important;
  outline:none;
}
.form-control::placeholder{color:#9da6b7}

/* Custom Checkbox / Toggle Wrap */
.custom-toggle-wrap{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:11px 15px;
  display:inline-block;
  width:100%;
}
.custom-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  margin:0;
  user-select:none;
}
.custom-toggle input{
  width:18px;
  height:18px;
  accent-color:#6046df;
  cursor:pointer;
}
.toggle-label{
  font-weight:550;
  color:#334155;
  font-size:12.5px;
}

/* Tables */
.table{
  color:#303747!important;
  font-size:12.5px!important;
}
.table>:not(caption)>*>*{
  padding:12px 14px!important;
  background:transparent!important;
  border-bottom-color:#eef0f4;
}
.table tbody tr{transition:background-color .15s ease}
.table tbody tr:hover{background-color:#fbfcfe!important}
.table th{
  color:#858c99;
  font-size:10.5px!important;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-weight:700;
}
.table td{vertical-align:middle}
.table-wrap{overflow-x:auto}

/* Empty States & Activity */
.empty-state{text-align:center;padding:50px 20px;color:#858c99;font-size:12.5px}
.empty-state i{font-size:32px;color:#afa3e9;display:block;margin-bottom:10px}
.activity-item{
  padding:12px 0;
  border-bottom:1px solid #eef0f4;
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12.5px;
}
.activity-dot{
  height:8px;
  width:8px;
  min-width:8px;
  border-radius:50%;
  background:#10b981;
}
.activity-dot.inactive{background:#cbd5e1}
.breadcrumb{margin-bottom:20px;font-size:12px}
.preview-image{
  width:100%;
  max-height:190px;
  object-fit:contain;
  background:#f5f6f9;
  border-radius:10px;
  margin:12px 0;
  border:1px solid #e8ecf4;
  padding:10px;
}
.alert{border-radius:9px;font-size:12.5px}

/* Card Footer & Pagination */
.card-footer{
  background:#ffffff!important;
  border-top:1px solid #edf0f4!important;
  border-radius:0 0 12px 12px!important;
}
.pagination{
  display:inline-flex;
  gap:4px;
  list-style:none;
  padding:0;
  margin:0;
  align-items:center;
}
.pagination .page-item .page-link{
  border:1px solid #e2e8f0;
  border-radius:7px;
  color:#4b5563;
  padding:0 10px;
  font-size:12px;
  font-weight:600;
  min-width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#ffffff;
  transition:all .15s ease;
}
.pagination .page-item.active .page-link{
  background:#6046df!important;
  border-color:#6046df!important;
  color:#ffffff!important;
  box-shadow:0 2px 6px rgba(96, 70, 223, 0.25);
}
.pagination .page-item:not(.active):not(.disabled) .page-link:hover{
  background:#f8fafc;
  color:#1e293b;
  border-color:#cbd5e1;
}
.pagination .page-item.disabled .page-link{
  color:#cbd5e1!important;
  background:#f8fafc!important;
  border-color:#eef1f6!important;
  cursor:not-allowed;
  pointer-events:none;
}

/* Responsive */
@media(max-width:1000px){
  .header-context span{display:none}
  #nsofts_sidebar.mega-sidebar{width:215px}
  #nsofts_header.mega-header{left:215px;width:calc(100% - 215px)}
  #nsofts_main,#nsofts_footer{margin-left:215px!important}
}
@media(max-width:760px){
  #nsofts_sidebar.mega-sidebar{transform:translateX(-100%);transition:transform .2s ease-in-out!important}
  .mega-menu-open #nsofts_sidebar.mega-sidebar{transform:none;top:62px}
  .menu-toggle{display:block}
  #nsofts_header.mega-header{left:0;width:100%;padding:0 16px}
  #nsofts_main{margin-left:0!important;padding:75px 16px 20px!important}
  #nsofts_footer{margin-left:0!important}
  .header-context{display:none}
  .page-heading{align-items:flex-start;flex-direction:column}
  .stat-card{height:125px;padding:16px}
}
