/*!
 * @project   admin-dashboard
 * @version   1.0.0
 * @author    N-Gen Design (https://ngendesign.com)
 * @license   MIT
 * @see  https://github.com/n-genesis/admin-dashboard
 *
 * Copyright (c) 2026 N-Gen Design. All rights reserved.
 */
/* ==========================================================================
   LAYOUT: SIDEBAR & PAGE WRAPPER
   ========================================================================== */
/*!
 * @file      sidebar_wrapper.scss 
 * @section   Layout: Sidebar & Page Wrapper
 * @desc      Controls the core application shell layout, off-canvas transitions,
 *            and fixed structural positioning for the administrative sidebar.
 */
/*--------------------------------------------------------------
# Main Navigation bar
--------------------------------------------------------------*/
#wrapper {
  overflow-x: hidden;
}

#sidebar-wrapper {
  min-height: 100vh;
  left: -15rem;
  transition: all 0.25s ease-out;
  position: fixed;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

#page-content-wrapper {
  position: relative;
  left: 0px;
  /* Push it to the right of the fixed element's width */
  width: 100%;
  /* Calculate remaining width */
  height: 100vh;
  /* Example height */
  transition: all 0.25s ease-out;
}

#page-content-wrapper #page-footer .bi {
  color: var(--bs-black) !important;
}

body.ng-sidenav-toggled #wrapper #sidebar-wrapper {
  left: 0;
}

body.ng-sidenav-toggled #wrapper #page-content-wrapper {
  left: 240px;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    left: 0;
  }
  #page-content-wrapper {
    left: 240px;
    /* Push it to the right of the fixed element's width */
    width: calc(100% - 240px);
  }
  body.ng-sidenav-toggled #wrapper #sidebar-wrapper {
    left: -15rem;
  }
  /**/
  body.ng-sidenav-toggled #wrapper #page-content-wrapper {
    left: 0;
    width: 100%;
  }
}
/**
 * TABLE OF CONTENTS
 * -----------------
 * 1. Reset & Base Styles
 * 2. Variables & Theme
 * 3. Typography
 * 4. Layout & Grid
 * 5. Components (Buttons, Cards, etc.)
 * 6. Navigation
 * 7. Media Queries
*/
/*-------------------------------------------------------
   1. RESET & BASE STYLES
------------------------------------------------------- */
body {
  background-color: #f8f9fa;
}

[data-bs-theme=dark] body {
  background-color: var(--bs-dark);
}

/*-------------------------------------------------------
   2. VARIABLES & THEME
------------------------------------------------------- */
/*-------------------------------------------------------
   3. TYPOGRAPHY
------------------------------------------------------- */
/*-------------------------------------------------------
   4. LAYOUT & GRID
------------------------------------------------------- */
/* --- body > div#wrapper --- */
#wrapper {
  overflow-x: hidden;
}

/* --- Content Wrapper --- */
#content-wrapper {
  position: relative;
  transform: translateX(0px);
  /* left: 0px; */
  /* Push it to the right of the fixed element's width */
  width: 100%;
  /* Calculate remaining width */
  height: 100vh;
  /* Example height */
  transition: all 0.25s ease-out;
}

/* --- Header Navbar --- */
/* --- Main Content --- */
/* --- #footer-conter i.bi color --- */
#content-wrapper #footer-content .bi {
  color: var(--bs-black) !important;
}

/* --- #content-wrapper .sidebar-toggled --- */
body.ng-sidenav-toggled #wrapper #content-wrapper {
  transform: translateX(240px);
  /* left: 240px; */
}

/* --- Navigation tab Styles --- */
.nav-tabs-custom .nav-item .nav-link.active {
  color: #038edc;
}

.nav-tabs-custom .nav-item .nav-link {
  border: none;
}

.nav-tabs-custom .nav-item {
  position: relative;
}

.nav-tabs-custom .nav-item .nav-link.active:after {
  -webkit-transform: scale(1);
  transform: scale(1);
}

.nav-tabs-custom .nav-item .nav-link::after {
  content: "";
  background: #038edc;
  height: 2px;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -2px;
  -webkit-transition: all 250ms ease 0s;
  transition: all 250ms ease 0s;
  -webkit-transform: scale(0);
  transform: scale(0);
}

/* --- Work Activity Dark Theme Styles--- */
[data-bs-theme=dark] .nav-tabs-custom .nav-item .nav-link.active {
  color: rgba(var(--bs-body-color-rgb));
}

/*-------------------------------------------------------
   5. COMPONENTS
------------------------------------------------------- */
/* --- Media Group --- */
.iq-media-group .iq-media {
  margin-left: -20px;
  position: relative;
  z-index: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.iq-media-group .iq-media:hover {
  z-index: 9;
}

.iq-media-group .iq-media img {
  border: 2px solid #DCDDDF;
}

.iq-media-group .iq-media:first-child {
  margin-left: 0;
}

.iq-media-group .iq-media.border {
  border: 2px solid #DCDDDF;
}

.iq-media {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.iq-media:hover {
  text-decoration: none;
}

/* --- Avatar Images --- */
.iq-avatars .iq-avatar {
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.avatar-30 {
  height: 30px;
  width: 30px;
  line-height: 30px;
  min-width: 30px;
}

.avatar-35 {
  height: 35px;
  width: 35px;
  line-height: 35px;
  min-width: 35px;
}

.avatar-40 {
  height: 40px;
  width: 40px;
  line-height: 40px;
  min-width: 40px;
}

.avatar-45 {
  height: 45px;
  width: 45px;
  line-height: 45px;
  min-width: 45px;
}

.avatar-50 {
  height: 50px;
  width: 50px;
  line-height: 50px;
  min-width: 50px;
}

.avatar-60 {
  height: 60px;
  width: 60px;
  line-height: 60px;
  min-width: 60px;
}

.avatar-70 {
  height: 70px;
  width: 70px;
  line-height: 70px;
  min-width: 70px;
}

.avatar-80 {
  height: 80px;
  width: 80px;
  line-height: 80px;
  min-width: 80px;
}

.avatar-90 {
  height: 90px;
  width: 90px;
  line-height: 90px;
  min-width: 90px;
}

.avatar-100 {
  height: 100px;
  width: 100px;
  line-height: 100px;
  min-width: 100px;
}

.avatar-110 {
  height: 110px;
  width: 110px;
  line-height: 110px;
  min-width: 110px;
}

.avatar-120 {
  height: 120px;
  width: 120px;
  line-height: 120px;
  min-width: 120px;
}

.avatar-130 {
  height: 130px;
  width: 130px;
  line-height: 130px;
  min-width: 130px;
}

.avatar-155 {
  height: 155px;
  width: 155px;
  line-height: 155px;
  min-width: 155px;
}

.avatar-235 {
  height: 235px;
  width: 235px;
  line-height: 235px;
  min-width: 235px;
}

/* --- Card ReStyles --- */
.card {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
  border-radius: 0.5rem;
}

.card-header,
.card-footer {
  padding: 1rem 1.35rem;
}

.card-body h5 {
  font-size: 1rem;
}

/* --- Card Avatar img, groups, and items --- */
.card .avatar-sm {
  height: 2rem;
  width: 2rem;
}

.card .avatar {
  height: 3rem;
  width: 3rem;
}

.card .avatar-img {
  height: 7rem;
  width: 7rem;
}

.card .avatar-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 12px;
}

.card .avatar-group .avatar-group-item {
  margin-left: -14px;
  border: 2px solid #fff;
  border-radius: 50%;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.card .avatar-group .avatar-group-item a {
  text-decoration: none !important;
}

.card .avatar-title {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: #038edc;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 500;
  height: 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
}

/* --- Table styles --- */
.card .table-nowrap td {
  white-space: nowrap;
}

.card .table > :not(caption) > * > * {
  padding: 0.75rem 0.75rem;
  background-color: var(--bs-table-bg);
  border-bottom-width: 1px;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

/* --- Card Task Item Styles --- */
.card-task-item {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
  cursor: pointer; /* Makes it feel clickable */
}

.card-task-item:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Deeper shadow */
  border-color: var(--bs-primary); /* Highlights the border with your primary color */
}

/* Dark Theme specific hover (optional) */
[data-bs-theme=dark] .card-task-item:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
  background-color: var(--bs-tertiary-bg); /* Subtle background shift in dark mode */
}

/* --- Dashboard Drive Cards --- */
.drive-card .avatar-title {
  columns: var(--bs-white);
}

/* --- Work Activity --- */
.work-activity {
  position: relative;
  color: #74788d;
  padding-left: 5.5rem;
}

.work-activity::before {
  content: "";
  position: absolute;
  height: 100%;
  top: 0;
  left: 66px;
  border-left: 1px solid rgba(3, 142, 220, 0.25);
}

.work-activity .work-item {
  position: relative;
  border-bottom: 2px dashed #eff0f2;
  margin-bottom: 14px;
}

.work-activity .work-item:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

.work-activity .work-item::after, .work-activity .work-item::before {
  position: absolute;
  display: block;
}

.work-activity .work-item::before {
  content: attr(data-date);
  left: -157px;
  top: -3px;
  text-align: right;
  font-weight: 500;
  color: #74788d;
  font-size: 12px;
  min-width: 120px;
}

.work-activity .work-item::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -26px;
  top: 3px;
  background-color: #fff;
  border: 2px solid #038edc;
}

/* --- Work Activity Dark Theme Styles --- */
[data-bs-theme=dark] .work-activity,
[data-bs-theme=dark] .work-activity .work-item::before {
  color: rgba(var(--bs-body-color-rgb));
}

[data-bs-theme=dark] .work-activity::before {
  border-left-color: var(--bs-info);
}

[data-bs-theme=dark] .work-activity .work-item::after {
  border-color: var(--bs-info);
}

/* --- Pagination --- */
.pagination {
  --bs-pagination-border-radius: 0;
}

/* --- Preloader --- */
#preloader {
  position: absolute;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--bs-white);
  transition: all 0.6s ease-out;
  opacity: 1;
  visibility: visible;
  height: 100vh;
}

/* Add a class to hide the preloader */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--bs-blue) transparent var(--bs-blue) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*-------------------------------------------------------
   6. NAVIGATION
------------------------------------------------------- */
/* --- Sidebar Wrapper --- */
#sidebar-wrapper {
  min-height: 100vh;
  transform: translateX(-240px);
  /* left: -15rem; */
  transition: all 0.25s ease-out;
  position: fixed;
}

/* LARGE SCREEN STYLES (Desktop) */
@media (min-width: 992px) {
  #sidebar-wrapper {
    transform: translateX(0px);
  }
}
#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

/* --- #sidebar-wrapper .sidebar-toggled --- */
body.ng-sidenav-toggled #wrapper #sidebar-wrapper {
  /* left: 0; */
  transform: translateX(0px);
}

/* --- #sidebar-nav & .sidebar --- */
#sidebar-nav {
  width: 240px;
  height: 100vh;
  padding-top: 8px !important;
}

#sidebar-nav .bi-logo {
  font-size: 28px;
}

.sidebar .btn-toggle {
  padding: 0.25rem 0.5rem;
  color: var(--bs-emphasis-color);
  background-color: transparent;
}

.sidebar .btn-toggle:hover,
.sidebar .btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), 0.85);
  background-color: var(--bs-tertiary-bg);
}

.sidebar .btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
  margin-top: 4px;
}

[data-bs-theme=dark] .sidebar .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.sidebar .btn-toggle[aria-expanded=true] {
  color: rgba(var(--bs-emphasis-color-rgb), 0.85);
}

.sidebar .btn-toggle[aria-expanded=true]::before {
  transform: rotate(90deg);
  margin-top: 0px;
}

.sidebar .btn-toggle-nav a {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
}

.sidebar .btn-toggle-nav a:hover,
.sidebar .btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg) !important;
}

/*-------------------------------------------------------
   7. MEDIA QUERIES
------------------------------------------------------- */
/* --- @media #sidebar-wrapper & #content-wrapper  --- */
@media (min-width: 768px) {
  #sidebar-wrapper {
    left: 0;
  }
  #content-wrapper {
    left: 240px;
    /* Push it to the right of the fixed element's width */
    width: calc(100% - 240px);
  }
  /* --- #sidebar-wrapper .sidebar-toggled --- */
  body.ng-sidenav-toggled #wrapper #sidebar-wrapper {
    left: -15rem;
  }
  /* --- #content-wrapper .sidebar-toggled --- */
  body.ng-sidenav-toggled #wrapper #content-wrapper {
    left: -240px;
    width: calc(100% + 240px);
  }
}