:root {
  --font-heading:'Poppins',sans-serif;
  --font-body:'Inter',sans-serif;
  --primary-color:#0F2A44;
  --secondary-color:#27AE60; 
  --accent:#E85D04;   
  --dark-navy:#071c33;
  --light-bg:#eef2f7;
  --text:#6c757d;
  --sidebar-color: #0F2A44;
}

body {
  background:var(--light-bg);
  font-family:var(--font-body);
  color:var(--dark-navy);
}

/* SIDEBAR FULL HEIGHT FLEX */
.sidebar{
  background: var(--sidebar-color);
  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: 28px;
  width: 130px;
}

.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(--primary-color);
  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;
}

/* ===== MOBILE WELCOME CARD CENTER ALIGN ===== */
@media (max-width:480px){

  .topbar .d-flex{
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }

  .topbar h4{
    text-align: center;
    font-size:22px;
  }

  .topbar p{
    text-align: center;
    font-size:14px;
  }

  .topbar .btn{
    margin-top:12px;
  }
  .dash-card h5{
    text-align: center;
  }
  .btn-success{
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: auto;
  }

}
/*------------ Chat --------------*/
/* CHAT DESIGN */
.chat-users .list-group-item{
  border:none;
  padding:15px;
}

.chat-users .active{
  background:#eef2f7;
  color:#000;
}

.chat-msg{
  display:inline-block;
  padding:10px 14px;
  border-radius:14px;
  max-width:75%;
  font-size:14px;
}

.chat-msg.caregiver{
  background:#fff;
  border:1px solid #e5e7eb;
}

.chat-msg.user{
  background:var(--secondary-color);
  color:#fff;
}

/* mobile fix */
@media(max-width:991px){
  .chat-body{
    height:300px;
  }
}
.content{
  animation:fadeIn .6s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
.dash-card{
  transition:.3s;
}

.dash-card:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 60px rgba(0,0,0,0.15);
}

.chat-users .list-group-item{
  border:none;
  padding:15px;
}

.chat-users .active{
  background:#eef2f7;
  color:#000;
}

.chat-msg{
  display:inline-block;
  padding:10px 14px;
  border-radius:14px;
  max-width:75%;
  font-size:14px;
}

.chat-msg.user{
  background:#fff;
  color: #000;
  border:1px solid #e5e7eb;
}

.chat-msg.caregiver{
  background:var(--secondary-color);
  color:#fff;
}


/*=======================================================
                  Dashboard Style END
==========================================================*/
