:root {
  --header-gradient: linear-gradient(126deg, #a8caba 0%, #5d4157 100%);
  --primary-gradient: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
  --text-light: #ffffff;
  --accent-color: #00cec9;
  --transition-speed: 0.3s;
  --font-family: 'Times New Roman', serif;
  --dropdown-focus-bg: #f8f9fa;
  --dropdown-active-bg: #0d6efd;
  --dropdown-active-text: #ffffff;
  --transition-fast: 0.15s;
  --card-bg: #f5f4f0;
  --active-card-bg: #ffffff;
  --text-main: #1e2022;
  --text-muted: #82868b;
  --line-color: #d1d5db;
  --line-active-color: #3b82f6;
}

body {
  background-color: #f4f7f6;
  font-family: var(--font-family);
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#main-content-area {
  height: calc(100vh - 70px);
  overflow-y: auto;
  /*padding: 15px;*/
}

#pages-wrapper {
  position: relative;
  /*z-index: 1;*/
  /* Keep page content at a low layer */
}

.top-info-bar {
  background: var(--header-gradient);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 30px;
  position: relative;
  z-index: 10001;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 100px;
}

.company-logo {
  height: 40px;
  width: auto;
}

.company-name {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.user-meta-info {
  display: flex;
  gap: 20px;
  color: #ffffff;
  font-size: 14px;
}

.user-meta-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-navbar {
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: left;
  color: white;
  position: relative;
  z-index: 9999;
}

.custom-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.custom-navbar>ul>li {
  position: relative;
}

.custom-navbar li a {
  display: block;
  padding: 5px 15px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  cursor: pointer;
}

.custom-navbar .dropdown-menu {
  display: none;
  visibility: hidden;
  /*opacity: 0;*/
  transform: translateY(15px);
  transition: all var(--transition-speed) ease;
  line-height: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  border-top: 3px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  z-index: 10000 !important;
}

.custom-navbar li:hover>.dropdown-menu {
  display: block;
  visibility: visible;
  /* opacity: 1; */
  transform: translateY(0);
}

.custom-navbar .dropdown-menu li a {
  color: #333;
  padding: 12px 20px;
  text-transform: none;
  border-bottom: 1px solid #eee;
}

.custom-navbar .dropdown-menu li a:hover,
.custom-navbar .dropdown-menu li:hover>a,
.dropdown-submenu:hover>a {
  background: #f8f9fa !important;
  padding-left: 30px;
  color: #764ba2 !important;
}

.custom-navbar>ul>li:hover>a {
  background: #f8f9fa;
  color: #764ba2 !important;
}

/* .custom-navbar li:hover>a i,
  .dropdown-submenu a i {
    color: #764ba2;
  } */

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

.user-settings {
  position: relative;
  display: inline-block;
}

.settings-btn {
  border: none;
  padding: 8px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.settings-btn:hover {
  background: var(--accent-color);
  color: white;
}

.settings-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.settings-dropdown a {
  color: #333 !important;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  cursor: pointer;
}

.settings-dropdown a:hover {
  background-color: #f1f1f1;
  color: #764ba2;
}

.user-settings:hover .settings-dropdown {
  display: block;
}

.typeahead li.active {
  text-decoration: none;
  background-color: var(--dropdown-active-bg);
}

.typeahead li.active .dropdown-item {
  color: var(--dropdown-active-text) !important;
}

.typeahead .dropdown-item:hover {
  color: var(--dropdown-active-text) !important;
  text-decoration: none;
  background-color: var(--dropdown-active-bg);
}

.typeahead:focus-visible {
  box-shadow: inset 0 0 0 2px var(--dropdown-active-bg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop {
  z-index: 10400 !important;
}

.modal {
  z-index: 10500 !important;
}

.main-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.image-side {
  background: #f8f9fa url('../assets/images/transport.png') no-repeat center center;
  background-size: cover;
}

.login-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.logo-box {
  height: 15%;
  background: url('../assets/images/fulllogo.png') no-repeat center;
  background-size: contain;
}

.divider {
  margin-bottom: 30px;
}

.custom-input {
  border-radius: 15px;
}

.custom-btn {
  background: none;
  color: #000;
  font-weight: bold;
  border-radius: 0;
  padding: 10px 30px;
  transition: 0.3s;
}

.custom-btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 767px) {
  .image-side { height: 300px; }
}


/*-----------------------------------------06-07-2026---------------------------------------------------*/
.mtop-6vh{
  margin-top: 6vh;
}
.scrollable-buttons-sidebar {
    max-height: 80vh;   /* Restricts height to 80% of viewport screen */
    overflow-y: auto; /* Adds breathing room for the scrollbar */
}

.scrollable-buttons-sidebar::-webkit-scrollbar {
    width: 5px;
}

.scrollable-buttons-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-buttons-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.scrollable-buttons-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.shortcut-icons-sidebar {
    position: sticky;
    top: 20px;
}

/*----------------------------------------07-07-2026-------------------------------------------------------*/
.gap-1{
  gap: 1vh !important;
}

.padding-right1vh{
  padding-right: 1vh;
}

.metallic-sidebar {
    min-height: 79vh;
    gap:0.5vh;
    /* Replaces dark gray with a bright, reflective satin metal background */
    /*background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 25%, #dfe4e8 50%, #f1f3f5 75%, #ffffff 100%) !important;*/
    background: linear-gradient(135deg, #040404 0%, #2d3e4e 25%, #0e3554 50%, #185490 75%, #000000 100%) !important;
    border: 1px solid #c8d1d9 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff !important;
}

/* Polished Chrome / Silver Buttons */
.btn-metallic-silver {
    background: linear-gradient(to bottom, 
        #ffffff 0%, 
        #eaeaea 40%, 
        #d5d5d5 45%, 
        #ffffff 50%, 
        #e6e6e6 80%, 
        #cccccc 100%
    ) !important;
    border: 1px solid #b5bfc7 !important;
    border-bottom: 2px solid #9aa5af !important;
    color: #333333 !important;
    /*font-weight: 700;*/
    /*letter-spacing: 0.5px;*/
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 5px rgba(0,0,0,0.12), inset 0 1px 0 #fff;
    transition: all 0.15s ease;
}

.btn-metallic-silver:hover {
    /* Brightens up significantly on hover, mimicking high reflectivity */
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 40%, #e8e8e8 45%, #ffffff 50%, #f0f0f0 100%) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.18), inset 0 1px 0 #fff;
}

.btn-metallic-silver:active {
    background: linear-gradient(to bottom, #dcdcdc 0%, #c8c8c8 100%) !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(1px);
}

.btn-metallic-silver.active {
    background: linear-gradient(to bottom, #d0d5da 0%, #e2e7ec 100%) !important;    
    border-color: #4a90e2 !important; 
    color: #0056b3 !important;    
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.25), 0 0 8px rgba(74, 144, 226, 0.6) !important;    
    transform: translateY(1.5px);
}








/*---------------------------------USER PERFOMANCE-----------------------------------*/

.app-viewport {
  display: flex;
  min-height: 70vh;
  width: 100%;
}
.dashboard-card {
  width: 100%;
  display: flex;
}

.UserPerfomanceSidebar {
  width: 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-tree-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.nav-tree-container::-webkit-scrollbar {
  width: 4px;
}
.nav-tree-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.nav-tree, .tree-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tree-node {
  position: relative;
}

.tree-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px;
  color: var(--text-main);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.tree-label:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
}

.label-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-left i.node-icon {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: var(--text-main);
}

.label-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.tree-node.expanded > .tree-label > .label-right > .toggle-arrow {
  transform: rotate(180deg);
}

.tree-submenu {
  padding-left: 28px;
  position: relative;
  display: none; 
}

.tree-node.expanded > .tree-submenu {
  display: block;
}

.tree-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 20px;
  left: 17px;
  width: 1.5px;
  background-color: var(--line-color);
}

.tree-submenu > .tree-node::before {
  content: "";
  position: absolute;
  top: 0px;
  left: -11px;
  width: 16px;
  height: 18px;
  border-left: 1.5px solid var(--line-color);
  border-bottom: 1.5px solid var(--line-color);
  border-bottom-left-radius: 7px;
}

.tree-submenu .tree-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  padding: 3px 12px;
}

.tree-submenu .tree-submenu .tree-label {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  padding: 2px 10px;
}

.tree-submenu .tree-submenu .tree-submenu .tree-label {
  font-size: 12.5px;
  font-weight: 400;
  color: #6b7280;
  padding: 2px 10px;
}

.tree-node.selected-active > .tree-label {
  background-color: var(--active-card-bg);
  color: var(--text-main);
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.tree-node.selected-active > .tree-label .node-icon {
  color: var(--line-active-color);
}

.UserPerfomancemain-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  gap: 5px;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 5vh;
}

.breadcrumb-item-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item-custom.active {
  color: var(--text-main);
  font-weight: 700;
}

.breadcrumb-separator {
  font-size: 10px;
  color: #9ca3af;
}

.content-card {
  background-color: var(--active-card-bg);
  border-radius: 24px;
  padding: 5px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  height: 90%;
}

.view-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .app-viewport {
    padding: 12px;
  }
  .dashboard-card {
    flex-direction: column;
    padding: 16px;
  }
  .UserPerfomanceSidebar {
    width: 100%;
    min-width: 100%;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .UserPerfomancemain-content {
    padding-left: 0;
  }
}
/*-------------------------------USER PERFOMANCE-----------------------------*/