/* Custom styles for Payefy */
body {
    background-color: #f4f6f9;
}

.btn-primary {
    background-color: #194138;
    border-color: #194138;
}

.btn-primary:hover {
    background-color: #165e33;
    border-color: #165e33;
}

.form-control {
    border: 1px solid #194138;
}

.card-header {
    background-color: #194138;
    color: white;
}

.small-box.bg-info, .small-box.bg-success, .small-box.bg-warning, .small-box.bg-danger {
    background-color: #194138 !important;
    border-color: #194138 !important;
}

.small-box .icon i {
    color: rgba(255, 255, 255, 0.8);
}

.login-card-body {
    border-top: 5px solid #194138;
}

.navbar, .main-header .navbar {
    background-color: #194138 !important;
    border-color: #194138 !important;
}

.main-sidebar {
    background-color: #194138 !important;
    width: 250px; /* Ensure the sidebar width is consistent */
}

.sidebar-mini .main-sidebar {
    transition: width .3s ease-in-out;
}

/* Ensure the main content aligns with the sidebar */
.content-wrapper {
    margin-left: 250px; /* Ensure this matches the sidebar width */
    padding: 20px;
}

/* Adjust the logo in the sidebar */
.brand-link img {
    max-height: 50px;
    width: 100%;
    display: block;
    margin: 0 auto;
    opacity: 0.8;
    max-width: 200px; /* Adjust based on your requirements */
}

/* Ensure the sidebar menu items are not cut off */
.nav-sidebar .nav-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sidebar .nav-item .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
    width: 100%; /* Ensure the link takes the full width */
    box-sizing: border-box;
}

.nav-sidebar .nav-item > .nav-link {
    color: #c2c7d0;
}

/* Override active and hover colors for main menu items */
.nav-sidebar .nav-item > .nav-link.active, 
.nav-sidebar .nav-item > .nav-link:hover {
    background-color: #3a534c !important;
    color: #ffffff !important;
}

.nav-sidebar .nav-item.has-treeview.menu-open > .nav-link {
    background-color: #3a534c !important;
    color: #ffffff !important;
}

/* Style for treeview menu items */
.nav-treeview {
    padding-left: 1rem;
}

.nav-treeview .nav-item .nav-link {
    padding-left: 2rem; /* Adjust padding for submenu items */
    width: 100%; /* Ensure the submenu links fit within the sidebar */
    display: block; /* Use block to ensure the submenu items are displayed correctly */
}

.nav-treeview .nav-item > .nav-link {
    color: #c2c7d0;
}

.nav-treeview .nav-item > .nav-link.active,
.nav-treeview .nav-item > .nav-link:hover {
    background-color: #3a534c !important;
    color: #ffffff !important;
}

/* Login page background color */
.login-page {
    background-color: #194138;
}

/* Adjust the logo in the sidebar user panel */
.user-panel .image img {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.8;
}