/* General Reset */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    background: whitesmoke;
}

/* Sidebar Styles */
.sidebar {
    width: 230px;
    height: calc(100vh - 88px);
    position: fixed;
    left: 0.5%;
    top: 78px;
    border-radius: 10px;
    background: linear-gradient(to top, #5fb7e2, #1585bc);
    color: #fff !important;
    box-shadow: 0px 2px 2px #41505c;
    transition: width 0.3s, transform 0.3s ease-in-out;
    z-index: 100;
    overflow: auto;
}

.sidebar.hidden {
    transform: translateX(-10%);
}

.sidebar.collapsed {
    width: 45px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    transition: transform 0.7s ease-in-out;
    text-align: left;
}

.sidebar ul li a {
    color: #ffffffbf;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease-in-out;
}

.sidebar ul li a:hover,
.sidebar ul li a.active,
.sidebar ul li.current-menu-item>a {
    color: #fff !important;
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 20px;
}

.sidebar.collapsed ul li a .menu-text {
    display: none;
}

.sidebar.collapsed ul li a i {
    margin-right: 0;
}

/* Icon Alignment */
.nav-link-icon {
    width: 1.5rem;
    min-width: 1.5rem;
    font-size: 0.875rem;
}

/* Sidebar Toggle Icon */
.sidebar-link[data-bs-toggle="collapse"]::after {
    border-width: 0 .075rem .075rem 0;
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    transform: rotate(-135deg);
    transition: transform .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #f2f4f6;
}

.sidebar::-webkit-scrollbar-thumb {
    cursor: pointer;
    background-color: #5fb7e2;
    border-radius: 6px;
}

a.sidebar-link {
    padding: .625rem 1rem;
    /* color: #d4d4d4 !important; */
    font-weight: bold;
    position: relative;
    display: block;
    font-size: 1.08rem;
}

a.sidebar-link:hover {
    color: #000000 !important;
    /* background: #ffffff; */
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(-35deg);
    transition: all .2s ease-out;
}


/* Topbar Styles */
/* .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to left, #5fb7e2, #1585bc);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px #189ee0;
    z-index: 1000;
} */

.bg-custom-nav {
    background: linear-gradient(to left, #6abce4, #f9fdfe);
    transition: all 0.7s ease-out;
    width: 100%;
    position: fixed;
    z-index: 100;
}

/* Toggle Button */
#toggle-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: black;
}

.navbar-toggle-icon {
    position: relative;
    height: 0.125rem;
    width: 1.25rem;
    -webkit-transition: all 0.2sease-in-out;
    transition: all 0.2sease-in-out;
    display: block;
    top: -0.3125rem;
    padding-right: 0;
}

.navbar-toggle-icon .toggle-line {
    display: block;
    height: 100%;
    border-radius: 0.25rem;
    -webkit-transition: all 0.2sease-in-out;
    transition: all 0.2sease-in-out;
    background-color: black;
}

/* Profile Image & Dropdown */
.das-header-img {
    width: 40px;
    height: 40px;
    border: 2px solid;
    border-radius: 50%;
    cursor: pointer;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 93%;
    width: 6%;
    border-radius: 15px;
    box-shadow: 0px 4px 6px #189ee0;
    background: #1585bc;
    color: #fff;
    padding: 10px;
    margin-top: 5px;
    z-index: 1000;
}

.profile-dropdown a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 5px 0;
}

.profile-dropdown a:hover {
    color: white;
}

/* Default content styling */
.content {
    margin-left: 250px;
    /* margin-top: 60px; */
    padding: 20px;
    padding-top: 80px;
    transition: margin-left 0.3s ease-in-out;
}

.content.shifted {
    margin-left: 80px;
}

/* Links Styling */
a {
    text-decoration: none;
    color: black;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: blue;
}

/* Table Styling */
thead {
    background: #d3f0ff;
}

th.no-sort {
    pointer-events: none;
}

th.no-sort::after,
th.no-sort::before {
    display: none !important;
}

.card {
    border: 0;
    box-shadow: 1px 2px 6px rgb(78, 78, 78) !important;
}

.card-header {
    background: #1585bc;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .content {
        margin-left: 230px;
        width: calc(100vw - 230px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 150px;
    }

    .content {
        margin-left: 160px;
        width: calc(100vw - 160px);
    }

    .sidebar ul li {
        text-align: center;
    }
}

/* Form and Buttons */
.is-valid.ignore-tick,
.ignore-tick {
    padding-right: 1rem !important;
}

.btn-default {
    background: #1585bc;
    color: white;
}

.btn-default:hover {
    background: #55a3ca;
}

.btn-white {
    background: white;
    color: black;
}

.btn-text-white {
    color: white;
}

.btn-text-white:hover {
    color: white;
}

.btn-white:hover {
    background: white;
    color: black;
}

.btn-export {
    background: linear-gradient(to right, #6FB1FC, #4364F7, #0052D4);
}

/* Font Weights */
.fw-normal {
    font-weight: 400 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semi-bold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-bolder {
    font-weight: 800 !important;
}

/* Miscellaneous */
.client-child,
.client-child a {
    color: brown !important;
}

.client-nav .nav-item {
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
    max-width: 100%;
    justify-content: center;
}

.client-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
    width: 70%;
    text-align: center;
    display: block;
}

.client-nav .nav-link:hover {
    text-decoration: none !important;
}

.client-nav .pager {
    display: flex;
    justify-content: space-between;
}

.client-nav .card-header {
    background-color: #f9fafd !important;
}

.client-nav .card-footer {
    padding: 1rem;
    background-color: #f9fafd;
}

.no-action {
    pointer-events: none;
    cursor: default;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dropdown-toggle::after {
    display: none !important;
}