/* base body */
body {
  font-family: 'Poppins', 'Sans Serif';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #f8f9fa;
  height: 100vh;
  margin: 0;
}

.text-primary {
  color: #883cbe !important;
}

.auth-card {
  border-radius: 10px;
  border: 1px solid #dadada;
}

input,
input:focus,
select {
  background-color: transparent !important;
  height: 45px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

input:focus,
select:focus {
  border: 1px solid #883cbe !important;
}

.btn-primary {
  background-color: #883cbe !important;
}
.btn{
 padding: 10px 30px;
 border: none !important;
}

.btn:focus{
 box-shadow: none;
}

.btn-danger{
background-color: red;

}

.btn-pri {
  background-color: transparent !important;
  padding: 10px 30px;
  border: 1px solid #883cbe !important;
  color: #883cbe;
}

.btn-pri:hover{
  color: #fff;
  background-color: #883cbe !important;
}

/* NAVBAR fixed at top (if present) adjust main-content padding-top accordingly) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

/* Sidebar - desktop default */
.sidebar {
  background-color: #ffffff;
  color: #000;
  min-height: 100vh;
  transition: width .25s ease, transform .25s ease, left .25s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  /* expanded width */
  z-index: 1050;
  padding-top: 80px;
  /* height of navbar */
  /* box-shadow: 2px 0 6px rgba(0,0,0,0.04); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Links inside sidebar */
.sidebar a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  transition: background-color .15s ease, color .15s ease, padding .15s ease;
  margin: 6px 8px;
  border-radius: 8px;
  /* text-transform: uppercase; */
  font-weight: 600;
}

/* icon & label */
.sidebar i {
  font-size: 18px;
  width: 26px;
  text-align: center;
  flex: 0 0 26px;
}

.sidebar span {
  margin-left: 12px;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

/* active / hover */
.sidebar a.active,
.sidebar a:hover {
  background-color: #883cbe;
  color: #fff;
}

.sidebar a.active i,
.sidebar a:hover i {
  color: #fff;
}

/* Main content */
.main-content {
  margin-left: 240px;
  /* matches sidebar width */
  transition: margin-left .25s ease, padding .25s ease;
  height: calc(100vh - 0px);
  overflow-y: auto;
  padding: 100px 30px;
  /* top padding accounts for fixed navbar */
  /* background-color: #f8f9fa; */
  box-sizing: border-box;
}

/* === Collapsed sidebar (desktop behaviour) === */
.sidebar.collapsed {
  width: 70px;
  /* narrow width - show icons only */
}

.sidebar.collapsed span {
  opacity: 0;
  transform: translateX(-6px);
  visibility: hidden;
}

.sidebar.collapsed a {
  /* justify-content: center; */
  padding-left: 15px;
}

.main-content.expanded {
  margin-left: 70px;
}

/* === Mobile behaviour: sidebar hidden by default, slides in when active === */
@media (max-width: 768px) {

  /* Hide by moving off-canvas rather than display:none */
  .sidebar {
    left: -260px;
    /* hide off-screen */
    width: 240px;
    /* keep full width when open */
    padding-top: 90px;
  }

  /* When active, slide in */
  .sidebar.active {
    left: 0;
  }

  /* Main content should take full width when sidebar is hidden */
  .main-content {
    margin-left: 0;
    padding: 90px 16px;
  }

  /* When overlay is open (sidebar visible), prevent body scroll */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* overlay that appears only on mobile when sidebar is open */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  transition: opacity .2s ease;
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* small nicety: ensure collapsed icons centered vertically look good */
.sidebar.collapsed a {
  padding: 8px 13px;
}


.sub-title {
  color: #999999;
}

.card {
  border-radius: 8px !important;
  background-color: #00000000;
}

.btn:focus {
  box-shadow: none;
  outline: 0px;
}

.badge {
  background-color: #883cbe;
  color: white;
}

.responsive-table {
  padding-left: 0;
  list-style: none;
  width: 100%;
  margin: 0 auto;
  max-width: 100%;
}

.responsive-table li {
  border-radius: 6px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.responsive-table .table-header {
  background-color: #883cbe;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  font-weight: 600;
}

.responsive-table .table-row {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
}

/* .responsive-table .table-row:hover {
  background-color: #f9f6ff;
  transform: scale(1.01);
} */

.responsive-table .no-data {
  text-align: center;
  color: #777;
  font-style: italic;
  background: #fafafa;
}

.responsive-table .col-1,
.responsive-table .col-2,
.responsive-table .col-3,
.responsive-table .col-4 { flex-basis: auto; }


/* Mobile responsiveness */
@media (max-width: 767px) {
  .responsive-table .table-header {
    display: none;
  }

  .responsive-table li {
    display: block;
    padding: 15px 10px;
  }

  .responsive-table .col {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .responsive-table .col:last-child {
    border-bottom: none;
  }

  .responsive-table .col:before {
    content: attr(data-label);
    font-weight: 600;
    color: #6C7A89;
    flex-basis: 45%;
    text-align: left;
  }

  .responsive-table .no-data {
    text-align: center;
    padding: 20px;
    font-size: 16px;
  }
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.responsive-table li {
  display: flex;
  flex-wrap: nowrap;
}

.responsive-table .col {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 5px;
  word-wrap: break-word;
}




/* dark mode */

.dark-mode{
  background-color: #0f111a;
  color: #cfcfcf !important;
}
.dark-mode .main-content{
  background-color: #0f111a;
  color: #cfcfcf !important; 
}

.dark-mode nav, .dark-mode .navbar{
  background-color: #141824 !important;
 
}

.dark-mode .navbar{
 border-bottom: #31374a solid 1px !important;
}
.dark-mode nav{
  border-right: #31374a solid 1px !important;
}

.dark-mode nav a, .dark-mode .navbar i{
  color: #cfcfcf;
}


.dark-mode .responsive-table .table-row{
  background-color: #141824 !important;
  border: 1px solid #31374a;
  color: #cfcfcf;
}

.dark-mode .auth-card{
   border: 1px solid #31374a;
}

.dark-mode input{
   border: 1px solid #31374a;
   color: #cfcfcf !important;
}

.dark-mode .card{
   border: 1px solid #31374a;
}