/* === 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;
}

/* === 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: 20px;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.content-header,
.content,
.main-footer {
    padding: 5px !important;
}

.content-header {
    padding: 10px 5px !important;
}

/* === SIDEBAR === */
/* === MODERN SIDEBAR STYLE === */
.sidebar {
    width: 220px;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

/* === SIDEBAR MENU === */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: #444;
    font-weight: 500;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li:first-child {
    margin-top: 0px;
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 16px;
    color: #666;
}

.sidebar-menu li a:hover {
    background-color: #1302f7;
    color: #ffffff;
}

.sidebar-menu li a:hover i {
    color: #ffffff;
}

/* === ACTIVE STATE === */
.sidebar-menu li.active a {
    background-color: #250af1;
    color: #ffffff;
}

.sidebar-menu li.active a i {
    color: #ffffff;
}

/* === SUBMENU STYLES === */
.sidebar-menu li.has-submenu > a::after {
    content: ' ▼';
    margin-left: auto;
    font-size: 10px;
    color: #3407fe;
}
.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; 
}

.sidebar-menu li.active a {
  background-color: rgb(42, 14, 255) !important;
  color: white !important;
}


/* === 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: #bbdefb !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: #1e21e5;
    border-color: #1e88e5;
    color: #ffffff;
    box-shadow: 1px 1px 1px 1px #1e88e5;
    border-radius: 5px;
}

.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: #4c52ff;
  color: white;
  padding: 30px 20px;
  font-size: 32px;
  font-weight: 600;
  width: calc(100% - 250px);
  margin-left: 220px;
  margin-top: -120px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-header-bar .breadcrumb {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: #dce3fa;
    margin-top: 6px;
}
.main-sidebar {
  margin-top: 100px; /* adjust based on your header height */
}

.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;
}



