@import url('https://fonts.googleapis.com/css2family=Poppins&display=swap');

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style: none;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.275rem;
    color: var(--bs-emphasis-color);
}

tr th, tr td {
    text-align: center;
    vertical-align: middle;
}

button, .themebutton {
    background: linear-gradient(45deg, #B59805, #F21A05);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 7px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover, .themebutton:hover {
    background-color: #F21A05;
    transform: scale(1.05);
    color: #ffffff;
}

button:active {
    transform: scale(0.95);
}

.btn-outline-danger:hover {
    background: linear-gradient(45deg, #B59805, #F21A05);
    color: white;
    border: none;
    padding: 7px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}



/* for admin daskboar skeleton */
.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}
#sidebar {
    max-width: 264px;
    min-width: 264px;
    background: linear-gradient(45deg, #B59805, #F21A05);
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.35s ease-in-out;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -76px 0 0 -76px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}

#myDiv {
  display: none;
  text-align: center;
}

.imagelogosize {
    max-width: 200px; /* Set a default max-width */
    height: auto;
}

.alerthome {
    text-align: center;
    width: 100%; /* Make the alert full width */
    color: #ffffff;
    background: linear-gradient(45deg, #B59805, #F21A05);
    margin: auto; /* Center the alert */
    border-radius: 0; /* Remove rounded border */
}

.alerthome a {
    color: white; /* Set link color to white */
    font-weight: bold; /* Make the link bold */
    text-decoration: underline; /* Underline the link */
    margin-right: 5px;
}

.alerthome a:hover {
    text-decoration: none; /* Underline the link */
}

.alerthome i {
    cursor: pointer;
}

.alerthome i:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1); /* Scale up the text by 10% */
}

.alertfoot {
    text-align: center;
    width: 100%; /* Make the alert full width */
    background-color: #ffffff;
    margin: auto; /* Center the alert */
    border-radius: 0; /* Remove rounded border */
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
    padding: 10px; /* Add padding for better visibility */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Add shadow */
}


#sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

#sidebar {
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
    margin-left: 264px;
}

/* Navbar Elements*/

.sidebar-logo {
    padding: 1.15rem;
}

.sidebar-logo a {
    color: #e9ecef;
    font-size: 1.15rem;
    font-weight: 600;
}

.sidebar-nav {
    flex-grow: 1;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 0.875em;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    content: "";
    display: inline-block;
    margin-left: .255em; /* added margin for alignment */
    vertical-align: middle; /* align arrow correctly with text */
    border-top: .3em solid transparent; /* top border */
    border-bottom: .3em solid transparent; /* bottom border */
    border-left: .3em solid; /* left border for right arrow */
    /* the arrow is pointing to the right by default */
    transition: transform .2s ease-out;
    transform: rotate(0deg);
    /* position the pseudo-element properly */
    position: absolute;
    top: 50%;
    right: 1.5rem;
    /* Adjust to center the arrow */
    transform: translateY(-50%) rotate(0deg);
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
    transition: transform .2s ease-out;
}

/* Sidebar styling */
.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease; /* Smooth transition for size and background color */
    color: #333; /* Default text color, change as needed */
}

/* Hover effect */
.sidebar-link:hover {
    transform: scale(1.05); /* Grow the link size */
    background-color: var(--bs-primary-bg-subtle); /* Light background on hover */
    color: var(--bs-emphasis-color); /* Slight background on hover, change as needed */
}

/* Active item styling */
.sidebar-item.active .sidebar-link,
.sidebar-link.active {
    background-color: var(--bs-primary-bg-subtle); /* Light background on hover */
    color: var(--bs-emphasis-color);
    font-family: 'Poppins', sans-serif;
}


/* Ensure the badge does not grow disproportionately */
.sidebar-link .badge {
    transform: scale(1); /* Keep the badge size constant even when the parent grows */
    transition: transform 0.3s ease;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    position: absolute;
    bottom: 0;
    max-width: 264px;
    min-width: 264px;
    background: linear-gradient(45deg, #B59805, #F21A05);
}

/* Footer link */
.sidebar-footer .sidebar-link {
    color: #e9ecef; /* Change as needed */
    align-items: center;
}

.sidebar-footer .sidebar-link:hover {
    background-color: var(--bs-primary-bg-subtle); /* Light background on hover */
    color: var(--bs-emphasis-color); /* if dark mode it will white and if light mode it will dark  */
}


.avatar {
    height: 40px;
    width: 40px;
}


.navbar-expand .navbar-nav {
    margin-left: auto;
}

.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}

@media (min-width:768px) {
    .content {
        max-width: auto;
        width: auto;
    }
} 


.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .06);
    margin-bottom: 24px;
    opacity: 0.7;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    
}

.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 150px;
    width: 100%;
}

#sidebar.collapsed {
    margin-left: -264px;
}

.main.collapsed {
    margin-left: 0; /* Remove margin when sidebar is collapsed */
}
/* footer and navbar */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-link {
    color: #007bff;
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
}

.transparent-card {
    background-color: rgba(255, 255, 255, 0.75); /* Adjust the RGBA value for transparency */    
}

th.branch-col, td.branch-col {
    width: 150px !important; /* Adjust the width as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width:767.98px) {
    .navbar,
    footer {
        width: 100vw;
    }
}


.table-responsive {
    overflow-x: auto; /* Allows horizontal scrolling on smaller screens */
}

/* Theme toggler */

.theme-toggler {
    position: fixed;
    top: 50%;
    transform: translate(-65%);
    text-align: center;
    z-index: 10;
    right: 0;
    left: auto;
    border: none;
    background-color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggler .fa-sun,
html[data-bs-theme="light"] .theme-toggler .fa-moon {
    cursor: pointer;
    padding: 10px;
    display: block;
    font-size: 1.25rem;
    color: #fff;
}

html[data-bs-theme="dark"] .theme-toggler .fa-moon,
html[data-bs-theme="light"] .theme-toggler .fa-sun {
    display: none;
}

/* admin header */

.admin-header {
    display: flex;
    align-items: center;
}

.admin-header span {
    display: inline-block;
    margin-right: 10px; /* Add some space between the elements */
}

.admin-header h4, .admin-header h6 {
    margin: 0; /* Remove default margin of headings if necessary */
}

/*Chart*/
.chart-container {
    max-height: 400px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin: auto;
    box-sizing: border-box;
}

.graph-title {
    margin-left: 10px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

/*Front page buttons*/

#background-image {
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust 60px to match your navbar's actual height */
}

.my-button {
    width: 100%;        /* Makes the button full-width */
    border-radius: 20px; /* Adjust the border-radius as needed for rounded corners */
}

.my-button2 {
    width: 100%;
    border-radius: 20px;
    border: 2px solid gray; /* Gray outline */
    background-color: transparent; /* Transparent background */
    color: gray; /* Gray text color */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.my-button2 i { /* Icon styling */
    margin-right: 5px; /* Space between icon and text */
}

.my-button2:hover {
    background-color: gray; /* Change background on hover */
    color: white; /* Change text color on hover */
}

.no-underline {
    text-decoration: none; /* Removes the underline */
}

.no-underline:hover {
    text-decoration: underline; /* Adds underline on hover */
}

.btnlog {
    margin-right: 5px;
}

.btnlog:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1); /* Scale up the text by 10% */
}

.nav-link {
    color: rgb(10, 0, 100) !important; /* Default color */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and transform */
}

.nav-link:hover,
.nav-link:focus { /* Apply styles on hover and focus (for accessibility) */
    color: rgb(4, 0, 44) !important; /* Change color to white on hover */
    transform: scale(1.1); /* Scale up the text by 10% */
}

.nav-link:active { /* Apply styles when link is active (clicked) */
    color: rgb(4, 0, 44) !important; /* Change color to white when active */
    transform: scale(1.1); /* Scale up the text by 10% */
}

.nav-item.active > .nav-link {
    color: red; /* Change color to indicate active state */
    font-weight: bold; /* Optionally, add other styles */
}

.navbar-brand {
    color: rgb(0, 0, 0);
}

.navbar-brand:hover {
    color: rgb(70, 70, 70);
}

.red-checkbox:disabled {
    background-color: red;
    border-color: red;
}