:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --oxford-blue: #192338; 
    --space-cadet: #1E2E4F; 
    --ylnmn-blue: #31487A; 
    --jordy-blue: #8FB3E2; 
    --lavander-web: #D9E1F1;
    --yellow: #fbc847;
    --orange: #f3a712;
    --red: #FF5733; 
    --primary-color: #007bff;
    --secondary-color: #f8f9fa; 
}

body {
    
    #overflow-x: hidden;
    
}
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, var(--oxford-blue), var(--space-cadet), var(--ylnmn-blue));
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
     display: block;
    color: var(--lavander-web);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    padding: 1rem; /* Consistent padding */
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.chart {
    background-color: #eee;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 1rem; /* Consistent padding */
    margin: 16px 0px;
    display: block; /* Initially hide the card */
}

.chart canvas {

    height: 250px;  /* Adjust this value as needed to fit within the .chart container */
}


.header {
        position: fixed; /* Make the header fixed */
        top: 0;
        width: 110%;
        background: linear-gradient(135deg, var(--oxford-blue),  var(--space-cadet), var(--ylnmn-blue));
        min-height: 48px; /* Set a minimum height  48px*/
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Optional shadow for better visibility */
        z-index: 1000; /* Ensure the header stays above other content */
        margin: 0cm -1.3cm 0cm;
}

.header-card {
    padding: 0.5rem;
    text-align: center;
    min-height: inherit; 
}

.header-card:last-child {
    margin-right: 0; /* No margin on the last card */
}

.header select {
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    background-color: var(--lavander-web);
    color: black;
    font-size: 16px;
}

.header select:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    border-color: var(--jordy-blue);
}


.content {
    margin-top: 48px; /* Adjust this value based on your header height to avoid overlap  48px*/
 
}

.item i{
    color: var(--red);
     cursor: pointer;
    /*padding: 1rem;*/
    /*border-radius: 8px;*/
    font-size: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
            /*width: calc(33% - 20px); *//* Adjust width based on gap */
}


.logo-text {
    background: linear-gradient(45deg, var(--jordy-blue), var(--lavander-web));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.notification-badge {
    background: #ff6b6b;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: var(--sidebar-width);
    background-color: #eee;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
    
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}

.mobile-hamburger-wrapper {
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 40px;
}


#overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  background: var(--orange);
  margin: 0cm -2cm 1cm;
  padding: 1cm 3cm 1cm 3cm;
  box-shadow: 0px 20px 30px rgba(243, 167, 18, 0.2);

}


#overview section p {
  font-weight: normal;
}


table {
    width: 100%;
    
    margin-inline: auto;
    border-collapse: collapse;
    border-spacing: 2rem;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

th,
td,
caption {
    padding: 0.5rem;
}


th:first-child {
    background: var(--ylnmn-blue);
    border-radius: 20px 0 0 0;
    color: white;
        box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
}

th:not(:first-child):not(:last-child){
    background: var(--ylnmn-blue);
    color: white;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
}

th:last-child {
    background: var(--ylnmn-blue);
    color: white;
    border-radius: 0 20px 0 0;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
}


td {
    border-bottom: 2px dashed var(--lavander-web); /* Ensure this is applied to all td elements */
    font-weight: 400;
    font-size: 12px;
    color: #686868;
    background: #eee;
}

tr:last-child td {
    border-bottom: none; /* Remove the bottom border from the last row */
}

col:nth-child(1) {
    background: #f4feff;
}

caption,
th,
td {
    text-align: center;
}

@media (min-width: 992px) {               /* lg breakpoint */
    #sidebarMenu {
        display: none !important;   /* Force hide on desktop */
        width: 50% !important;            /* 70% of viewport */
    }
    main {
        margin-left: 280px !important;
    }
}
.sidebar { width: 280px; height: 100vh; }
.nav-link { min-height: 44px; display: flex; align-items: center; }
.offcanvas, .sidebar { 
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.offcanvas-body { overflow-y: auto; }