:root {
  --font-heading:'Poppins',sans-serif;
  --font-body:'Inter',sans-serif;
  --primary-color:#0B2D4F;
  --secondary-color:#F57C00;
  --accent:#1E88E5;
  --dark-navy:#071c33;
  --light-bg:#eef2f7;
  --text:#6c757d;
}

body {
  background:var(--light-bg);
  font-family:var(--font-body);
  color:var(--dark-navy);
}

/* SIDEBAR FULL HEIGHT FLEX */
.sidebar{
  background: var(--dark-navy);
  height:100vh;
  position:fixed;
  left:0;
  top:0;
  width:240px;
  padding:20px;
  display:flex;
  flex-direction:column;
}

/* INNER FLEX */
.sidebar-inner{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* MENU TAKE SPACE */
.menu{
  list-style:none;
  padding:0;
  margin-top:30px;
  flex:1; /* 🔥 push logout down */
}

/* LOGOUT AT BOTTOM */
.menu .logout{
  margin-top:auto; /* 🔥 magic line */
}

.sidebar-logo {
  margin-left: 10px;
  width: 160px;
}

.offcanvas-logo {
  margin-top: 60px;
  margin-left: -5px;
  width: 200px;
}

.logo h3 {
  color: var(--secondary-color);
  margin: 0;
}

.logo span {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 1px;
}


.menu li {
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.menu li i {
  margin-right: 10px;
}

.menu li.active,
.menu li:hover {
  background: var(--light-bg);
  color: var(--secondary-color);
}


/* CONTENT */
.content {
  padding: 30px 10px 30px 10px;
  scroll-behavior:smooth;
}
.content::-webkit-scrollbar{
  width:6px;
}
.content::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:10px;
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.menu a {
  text-decoration: none;
  color: inherit;
}

/* BUTTONS */
.btn-outline {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--primary-color);

}

/* MOBILE TOPBAR */
.mobile-topbar {
  position: fixed !important;
  top: 0;
  z-index: 2000;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--dark-navy);
  padding: 10px 15px;
  color: #fff;
  display: flex;
}
.topbar{
  background:#fff;
  padding:16px 22px;
  border-radius:14px;
  box-shadow:0 8px 25px rgba(0,0,0,0.05);
  margin-bottom:25px;
}
/* give space below fixed topbar */
@media (max-width:991.98px) {
  .content {
    margin-top: 50px;
  }
}



.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
}

/* OFFCANVAS */
.mobile-sidebar {
  width: 270px;
}

/* Make offcanvas full height */
.offcanvas.mobile-sidebar {
  height: 100vh;
}

/* Sidebar flex layout */
.sidebar-inner {
  height: 100%;
}

/* Menu scroll if needed */
.menu {
  overflow-y: auto;
  padding-right: 5px;
}

/* Logout fixed bottom */
.logout-box {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional: nicer scroll */
.menu::-webkit-scrollbar {
  width: 4px;
}

.menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Logout container */
.logout-box {
  background: var(--dark-navy);
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Logout button */
.logout-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 16px;
  padding: 12px 15px;
  text-align: left;
  cursor: pointer;
  color: var(--secondary-color);
}

.logout-btn i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.logout-btn:hover {
  border-radius: 10px;
  background: var(--light-bg);
}

.offcanvas {
  z-index: 1050;
}

.offcanvas-backdrop {
  z-index: 1040;
}


/* FORCE offcanvas width on mobile & tablet */
@media (max-width: 991.98px) {
  .offcanvas.mobile-sidebar {
    --bs-offcanvas-width: 240px;
    /* 👈 THIS IS THE KEY */
    width: 240px;
  }
}
/* mobile content spacing */
@media (max-width:480px){

  .content{
    padding:20px 14px !important;
  }

  }

/* DESKTOP PERFECT WIDTH FIX */
@media (min-width: 992px) {

  .sidebar{
    position:fixed;
    left:0;
    top:0;
    width:240px;
    height:100vh;
  }

  .content{
    margin-left:240px;
    width:calc(100% - 240px); /* 🔥 KEY FIX */
    max-width:calc(100% - 240px);
    overflow-x:hidden;
    height:100vh;
    overflow-y:auto;
  }

}


html,
body {
  overflow-x: hidden !important;
  width: 100%;
}

/* Bootstrap row fix */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Container fix */
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}


/* Prevent cards/table causing scroll */
.dash-box {
  max-width: 100%;
  overflow-x: hidden;
}
/* DASHBOARD CARDS */
.dash-card{
  background:#fff;
  max-width: 100%;
  overflow-x: hidden;
  padding:22px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  transition:.3s;
  height:100%;
}

.dash-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

/*now add*/
/* ===== PERFECT CONTENT FIT FIX ===== */

/* Remove double scroll */
html, body{
  height:100%;
  overflow:hidden;
}

/* Desktop layout */
@media (min-width:992px){

  body{
    display:flex;
  }

  .content{
    height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    padding:30px;
  }

}

/* Mobile layout */
@media (max-width:991px){

  html,body{
    overflow:hidden;
  }

  .content{
    height:calc(100vh - 60px); /* minus mobile topbar */
    overflow-y:auto;
    overflow-x:hidden;
    padding:20px 15px;
  }

}

.dash-card h3{
  font-size:28px;
  color:#0B2D4F;
}

.table th{
  font-weight:600;
  color:#0B2D4F;
}


.table thead{
  background:#f1f5f9;
}


.form-control,
.form-select{
  border-radius:10px;
  padding:10px;
}

.form-label{
  font-weight:600;
  font-size:14px;
  margin-bottom:6px;
}

textarea.form-control{
  resize:none;
}

.badge{
  padding:6px 10px;
  font-weight:500;
}
.client-img{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
}

.table thead th{
  font-size:14px;
  color:#6c757d;
  font-weight:600;
}

.table td{
  font-weight:500;
  font-size:14px;
}

/*=======================================================
                  Dashboard Style END
==========================================================*/
/*--------- admin clint lists.html Start -----------*/
/* ===============================
   CLIENT TABLE MOBILE FIX 320px
================================*/

@media (max-width:400px){

  /* top search area */
  .topbar .d-flex{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .topbar input{
    width:100% !important;
  }

  .topbar .btn{
    width:100%;
  }

  /* table scroll inside card only */
  .dash-card{
    overflow-x:auto;
  }

  .dash-card .table{
    min-width:650px; /* keep table proper */
  }

  /* smaller text */
  .table td,
  .table th{
    font-size:13px;
    white-space:nowrap;
  }

  .client-img{
    width:32px;
    height:32px;
  }
}
/*---------------- Admin Chat ----------------*/
/* CHAT BOX */
.chat-box{
  display:flex;
  flex-direction:column;
  height:70vh;
}

/* header */
.chat-header{
  font-weight:600;
  padding-bottom:10px;
  border-bottom:1px solid #eee;
}

/* chat body */
.chat-body{
  flex:1;
  overflow-y:auto;
  padding:15px 5px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* message */
.chat-msg{
  max-width:70%;
  padding:12px 16px;
  border-radius:14px;
  font-size:14px;
}

.chat-msg span{
  display:block;
  font-size:11px;
  margin-top:5px;
  opacity:.6;
}

/* user */
.chat-msg.user{
  background:#f1f5f9;
  align-self:flex-start;
}

/* admin */
.chat-msg.admin{
  background:var(--secondary-color);
  color:#fff;
  align-self:flex-end;
}

/* send box */
.chat-send{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.chat-send input{
  flex:1;
  padding:12px;
  border-radius:10px;
  border:1px solid #ddd;
}

.chat-send button{
  background:var(--secondary-color);
  border:none;
  color:#fff;
  padding:12px 20px;
  border-radius:10px;
}

/*--------------- Annoucement.html -----------*/
/* ANNOUNCEMENT */
.announce-item{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px;
  border-radius:14px;
  background:#f8fafc;
  margin-bottom:15px;
  align-items:start;
  transition:.3s;
}

.announce-item:hover{
  background:#eef2f7;
}

.announce-item h6{
  color:var(--dark-navy);
}

.announce-item .btn{
  height:40px;
}

/* MOBILE */
@media(max-width:768px){
  .announce-item{
    flex-direction:column;
  }
  .announce-item .btn{
    width:100%;
  }
}

/*---------------- asmin Report.html ----------*/
/* REPORT PAGE */
.report-item{
  padding:12px 15px;
  border-radius:12px;
  background:#f8fafc;
  margin-bottom:12px;
  font-weight:500;
  color:var(--dark-navy);
  display:flex;
  align-items:center;
  gap:10px;
  transition:.3s;
}

.report-item:hover{
  background:#eef2f7;
  transform:translateX(4px);
}

.progress{
  height:10px;
  border-radius:20px;
}

.progress-bar{
  font-size:10px;
  font-weight:600;
}

/*------------ admin Setting.html ------------*/
/* SETTINGS */
.setting-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
}

.setting-item:last-child{
  border-bottom:none;
}

.form-control{
  border-radius:10px;
  padding:12px;
  border:1px solid #e2e8f0;
}

.form-control:focus{
  box-shadow:none;
  border-color:var(--secondary-color);
}

/*================================== User Dashborad ==================*/
/*--------- Ticket chat ----------*/
/* CHAT */
.chat-box{
  height:75vh;
  display:flex;
  flex-direction:column;
}

.chat-area{
  flex:1;
  overflow-y:auto;
  padding:20px;
  background:#f8fafc;
  border-radius:12px;
}

.msg{
  max-width:70%;
  padding:12px 16px;
  border-radius:16px;
  margin-bottom:12px;
  font-size:14px;
}

.user-msg{
  background:#F57C00;
  color:#fff;
  margin-left:auto;
}

.admin-msg{
  background:#e2e8f0;
}

.chat-input-area{
  display:flex;
  gap:10px;
  margin-top:15px;
}

/*-------------------- user Knowledge base -------------------*/
/* KNOWLEDGE BASE */
.accordion-button{
  font-weight:600;
  color:var(--dark-navy);
}

.accordion-button:not(.collapsed){
  background:#F57C00;
  color:#fff;
}

.accordion-body{
  background:#f8fafc;
}
