
/* Additional custom styles */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    color: #c2c7d0; /* Example of changing sidebar text color */
}

.nav-icon {
    font-size: 0.85rem; /* Resize the font-awesome icon */
    line-height: 1.5;  /* Adjust line-height to align text and icon */
}


html, body {
   /* height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;*/
    background-color: #f4f6f9; /* Optional: Add a background color */
}

.login-box {
    width: 360px; /* Adjust width if necessary */
    margin: auto;
}

.card {
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    margin-top:px !important;
}

.card-title {
    font-weight: bold !important;
}
/* Message Panels */

.message-panel {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.message-panel.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-panel.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-panel.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.message-panel.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.content-wrapper > .content {
     margin-top: 50px !important;
     margin-right:20px !important;
     margin-left:20px !important;
  }
  
  .sidebarscrollable {
    overflow-y: auto; /* Adds a vertical scrollbar ONLY when needed */
    height: 450px !important;
	/*height: calc(100vh - 100px); /* Critical: Sets a height for the scroll area */
    /* Adjust the '100px' value. This subtracts the height of your header/logo from the viewport height */
}

/* Optional: Style the scrollbar for a better look (WebKit browsers like Chrome, Safari) */
.sidebarscrollable::-webkit-scrollbar {
    width: 5px;
}
.sidebarscrollable::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
}
.sidebarscrollable .sidebar-nav{
}




/* Target the list item that contains the dropdown */
.sidebar-nav .nav-item {
    display: flex !important;
    flex-direction: column !important; /* Stack children vertically */
}

/* The main navigation link */
.sidebar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    /* Your existing styles for padding, color, etc. */
}

/* The unordered list that is the dropdown menu */
.sidebar-nav .nav-item .dropdown-menu {
    position: relative !important; /* Override any 'absolute' positioning if needed */
    width: 100%;
    box-shadow: none; /* Optional: removes shadow for a nested look */
    background-color: transparent; /* Optional: blends in with sidebar */
    border: none;
    flex-direction: column;
    /* Initially, the menu is collapsed and takes no space */
    display: flex !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* When the parent nav-item has a 'active' or 'show' class (how Bootstrap toggles it) */
.sidebar-nav .nav-item.active .dropdown-menu,
.sidebar-nav .nav-item.show .dropdown-menu {
    max-height: 500px; /* A value larger than your biggest dropdown will ever be */
    opacity: 1;
    overflow-y: auto; /* Adds a scrollbar if the dropdown itself is too long */
}

/* Style for the individual items INSIDE the dropdown */
.sidebar-nav .dropdown-item {
    padding-left: 2.5rem; /* Indent them more than the main items */
    color: #ccc;
}
