/* === OVERLAY LOADING INDICATOR === */
.overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8) url("loader-img.gif") center no-repeat;
}
body.loading {
    overflow: hidden;
}
body.loading .overlay {
    display: block;
}

tr.group-start td.group-cell {
    cursor: pointer !important;
    font-weight: bold;
    background: #f7f7f7;
}

/* Collapsed group → show right arrow */
tr.group-start.collapsed td.group-cell::before {
    content: "▶ ";
    font-weight: bold;
}

/* Expanded group → show down arrow */
tr.group-start td.group-cell::before {
    content: "▼ ";
    font-weight: bold;
}

/* === LAYOUT === */
.main-header,
.main-header .navbar {
    height: 60px !important;
    min-height: 60px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.content-wrapper {
    margin-left: 220px;
    padding: 0px 10px;
    min-height: 100vh;
    background-color: #cdddf4;
}

.content-header,
.content,
.main-footer {
    padding: 5px !important;
}

.content-header {
    padding: 10px 5px !important;
}

.emicalculator {
  max-width:1000px; 
  width:100%; 
  background:#fff; 
  border:1px solid #ddd; 
  margin:20px auto;
  padding: 25px;
}

.emicalculator .position-relative {
  padding: 10px 0px;
  margin-bottom: 15px;
}

#menu-toggle { 
  top: 10px;
  margin-left: -500px;
  z-index: 1100;
}

.table-bordered {
  width: 100%;
  background-color: #fff;
}

#group { 
  top: 10px;
  left: 40px;
  z-index: 1100;
}

/* === SIDEBAR === */
/* === MODERN SIDEBAR STYLE === */
.sidebar {
    width: 220px;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 0px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

/* === SIDEBAR MENU === */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 10px;
     background-color: #243333;
     color:white;
     margin-top:100px;

}

#manageTable_wrapper, #activeTable_wrapper {
  background-color: white;
  padding: 10px;
}

td.text-end, tfoot.text-end th {
    text-align: right !important;
} 
.box-header>.box-tools { 
    top: 17px !important;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;  
    color:rgb(138 167 190);
    font-weight: 500;
    font-size: 16px;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
} 
.uside .sidebar-menu>li:hover>a, .uside .sidebar-menu>li.active>a, .uside .sidebar-menu>li.menu-open>a {
    background-color: var(--theme-color1);
    border-left: 4px solid #770d31;
    color: var(--theme-color9);
}

.sidebar-menu li:first-child {
    margin-top: 0px;
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 16px;
    color: rgb(138 167 190);
}
   
.treeview-menu>li.active>a, .treeview-menu>li>a:hover
.treeview-menu>li.active>a>i, .treeview-menu>li>a>i:hover {
    color: white;
    font-weight: bold;
}

.treeview-menu a i {
  color: inherit;  /* let it take the color from <a> */
}

/* === SUBMENU STYLES === */
.sidebar-menu li.has-submenu > a::after {
    content: ' ▼';
    margin-left: auto;
    font-size: 10px;
    color: rgb(138 167 190);
}
.sidebar-menu li.menu-open > .submenu {
    display: block;
}
 
.sidebar-menu .submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    display: none;
}

.sidebar-menu li.has-submenu:hover .submenu {
    display: block;
}

.sidebar-menu .submenu li a {
    padding: 10px 16px;
    font-size: 14px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #050117;
}

.sidebar-menu .submenu li a:hover {
    background-color:#cac8c8; 
    color: #333; 
}
 
/* === NAVBAR AND MENU === */
.unavbar {
    background: linear-gradient(120deg, #0313f7, #1e88e5);
    transition: background 0.5s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.submenu .unavbar {
    background: linear-gradient(120deg, #6072fd, #bbdefb);
    height: 30px !important;
    min-height: 30px !important;
}

.navbar-nav > li > a,
.submenu .navbar-nav > li > a {
    position: relative;
    padding: 10px !important;
    color: #fafbfc !important;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.navbar-nav > li > a:hover,
.submenu .navbar-nav > li > a:hover {
    background-color: rgba(21, 101, 192, 0.1);
    color: #f4f5f7 !important;
    border-radius: 4px;
    transform: translateY(-2px);
}

/* === ACTIVE ITEM HIGHLIGHT === */
.navbar .nav > .active > a {
    background: #529ef4 !important;
    color: white !important;
    border-radius: 5px 5px 0 0;
    box-shadow: inset 0 -3px 0 #0d47a1;
}

.submenu .navbar .nav > .active > a {
    background: #1565c0 !important;
    color: #fffcfc !important;
    border: 1px solid #ffffff;
    border-radius: 5px 5px 0 0;
}

.submenu .navbar .nav > .active > a::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top: 10px solid #1565c0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

/* === ANIMATED UNDERLINE ON ACTIVE === */
.submenu .navbar-nav > li > a::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: #1565c0;
    transition: width 0.3s ease;
}

.submenu .navbar-nav > li.active > a::before,
.submenu .navbar-nav > li > a:hover::before {
    width: calc(100% - 20px);
}

/* === TABLES === */
.table > thead > tr > th {
    background: #a6d6fd !important;
    padding: 5px !important;
}
.table > tbody > tr > td,
.table > thead > tr > td,
.table > tfoot > tr > td {
    padding: 5px !important;
}
.dataTables_scrollBody .table > thead > tr > th {
    background: #fff !important;
    padding: 0 !important;
}
.inlineTable > thead > tr > th {
    padding: 8px !important;
}

/* === BUTTONS === */
.btn-primary, .btn-warning,
.dt-button, .paginate_button,
.selcontainer .buttons button {
    background-color: #000275;
    border-color: #1e88e5;
    color: #ffffff;
    box-shadow: 1px 1px 1px 1px #1e88e5;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 15px;
}

.btn-primary:hover, .btn-warning:hover,
.btn-primary:focus, .btn-warning:focus,
.dt-button:hover, .paginate_button:hover,
.selcontainer .buttons button:hover {
    background-color: #1565c0;
    border-color: #1565c0;
    color: white;
}

.small-button {
    padding: 1px 6px !important;
}

.editbutton   { background-color: #1976d2; color: #fff; }
.deletebutton { background-color: #e53935; color: #fff; }
.smsbutton    { background-color: #039be5; color: #fff; }
.mailbutton   { background-color: #ef5350; color: #fff; }
.printbutton  { background-color: #fb8c00; color: #fff; }
.viewbutton   { background-color: #0288d1; color: #fff; }

/* === COLOR BLOCKS === */
.bg-lbrown { background-color: #64b5f6 !important; color: #fff !important; }
.bg-lgreen { background-color: #4fc3f7 !important; color: #fff !important; }
.bg-blue-1 { background-color: #1e88e5 !important; color: #fff !important; }

/* === MISC === */
.blurred-box:after {
    box-shadow: inset 0 0 0 200px rgba(255,255,255,0.1);
}
.user-icon {
    background-image: url("http://gstdemo2.bathrainfotech.com/assets/images/2.JPG");
}

.day-selector {
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

.day-selector label {
    margin: 4px 0;
}

.nutrition-entry textarea {
    font-size: 13px;
    height: 10px;
    padding: 4px 6px;
    resize: vertical;
}

.nutrition-textarea {
    display: none;
    margin-top: 5px;
    width: 100%;
}

.report-btn.active {
    background-color: #3939ff !important;
    color: white !important;
}

.menu-scroll {
    max-height: 300px;
    overflow-y: auto;
    display: block;
    padding-right: 10px;
}

.page-header-bar {
    background-color: #f3f6f9;
    color: rgb(10, 10, 10);
    padding: 0px;
    font-size: 24px;
    font-weight: 600;
    width:100%; /* if sidebar is 220px */
    margin-left: 0px;
    margin-top: 0; /* <-- CHANGE THIS */
    border-radius: 0; /* Optional */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    box-sizing: border-box;
}


.page-header-bar .breadcrumb {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: #00030e;
    margin-top: 6px;
}
.main-sidebar {
   
    top: 0px;
    left: 0;
    height: 100vh; /* Full viewport height */
    width: 219px;
    background-color: #243333; /* Dark navy like your image */
    color: white;
    
    z-index: 1000;
}

.select2-selection__choice {
    background-color: #007bff !important; /* Bootstrap primary */
    color: #fff !important;
    border: none;
    padding: 2px 5px;
    margin-top: 4px;
}

.select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 4px;
    font-weight: bold;
}

 .chat-list {
    max-height: 400px;
    overflow-y: auto;
  }
  .chat-list .bg-blue-500 {
    background-color: #6c63ff;
  }
  .chat-list .max-w-xs {
    max-width: 70%;
  }
  .new-comment textarea {
    resize: none;
  }
  .discussion-box {
  min-height: 200px;       /* Controls the height of the discussion section */
  padding: 1rem;           /* Space around the comments */
    /* Optional light background */
 /* Optional border */
  border-radius: 8px;      /* Optional rounding */
  overflow-y: auto;        /* Make scrollable if too long */
}

.chat-message {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px;
  background: #f9f9f9;
}

.chat-message.operator {
  background: #e6f7ff;
  border-color: #91d5ff;
}

.chat-message.owner {
  background: #f6ffed;
  border-color: #b7eb8f;
}

.chat-header {
  font-size: 0.9rem;
}

.chat-body {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 3px;
  margin-top: 5px;
}
.badge-success {
    background-color: #28a745;
    color: white;
}
.badge-danger {
    background-color: #dc3545;
    color: white;
}

/* Remove zebra striping */
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd,
table.dataTable tbody tr {
  background-color: #ffffff !important;
}


.step-wizard {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}

.step-wizard-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.step-wizard-item {
  flex: 1;
  position: relative;
  text-align: center;
}

/* LINE BETWEEN STEPS */
.step-wizard-item::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 4px;
  background-color: #ccc; /* default */
  z-index: 0;
  transform: translateX(-100%);
}

/* REMOVE line from first */
.step-wizard-item:first-child::after {
  display: none;
}

/* BLUE LINE: apply to step after a completed one */
.step-wizard-item.completed + .step-wizard-item::after {
  background-color: #1e3a5f;
}

.progress-count {
  width: 44px;
  height: 44px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  color: white;
  font-size: 16px;
  line-height: 44px;
  font-weight: bold;
  z-index: 1;
  position: relative;
}

.step-wizard-item .progress-count {
  background-color: #ccc; /* default grey */
}

.step-wizard-item.completed .progress-count {
  background-color: #7de8f3; /* light blue */
  color: #000;
}

.step-wizard-item.active .progress-count {
  background-color: #1e3a5f; /* dark blue */
  color: #fff;
}



.progress-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}
.is-invalid {
  border-color: red !important;
  margin-left:-20px;
}

.custom-slider {
    accent-color: rgb(57, 147, 249);
  }

  .custom-slider::-webkit-slider-thumb {
    background: rgb(136, 221, 247);
  }
  .custom-slider::-moz-range-thumb {
    background: rgb(113, 223, 243);
  }

  .slider-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    font-size: 12px;
    color: #013e64;
    margin-top: 4px;
  }
  .slider-labels span {
    text-align: center;
  }

   .slider-container {
    position: relative;
    width: 100%;
  }
  .slider-labels-absolute {
    position: relative;
    width: 100%;
    margin-top: 6px;
  }
  .slider-labels-absolute span {
    position: absolute;
    font-size: 12px;
    color: #333; 
    white-space: nowrap;
  }





