/* Body with flexbox layout */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Flex container for sidebar and content */
.wrapper {
    display: flex;
    flex: 1;
    margin-right: 250px; /* Ensure sidebar always takes 250px */
}
.disabled {
    cursor: not-allowed;
}
/* Sidebar with fixed width */
#sidebar {
    width: 250px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background-color: #233b37;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures bottom section stays at bottom */
}

#sidebar .logo {
    width: auto; /* Let the image take its natural width */
    height: auto; /* Maintain its aspect ratio */
    margin: 0 auto; /* Center the image horizontally */
    display: block;
}

/* Bottom links container */
.sidebar-bottom {
    padding-bottom: 20px; /* Add padding for spacing */
}

/* Main content adjusts to the remaining space */
#content {
    flex-grow: 1;
    padding: 20px;
    transition: margin-right 0.3s ease;
}

/* Navbar adjustments */
.navbar {
    position: relative;
    z-index: 999;
    width: calc(100% - 250px); /* Navbar width minus sidebar width */
    margin-right: 250px; /* Align with sidebar */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Sidebar links styles */
#sidebar a {
    color: rgba(255, 255, 255, 1);
}

#sidebar a.active {
    background: rgba(133, 217, 191, 0.2);
}

/* Icon button styles */
.icon-btn {
    border: none; /* Remove button border */
    margin-right: 10px; /* Space between icons */
    color: rgba(3, 15, 15, 1); /* Set the text color */
    border-radius: 5px; /* Optional: Add border radius */
    transition: background-color 0.3s; /* Add transition for hover effect */
    background: rgba(247, 248, 249, 1);
}

.icon-btn:hover {
    background-color: rgba(3, 15, 15, 0.1); /* Add hover effect */
}

/* Profile picture styles */
.profile-picture {
    width: 42px;
    height: 42px;
    gap: 0;
    border-radius: 50%;
}

/* User info styles */
.user-info {
    display: inline-block; /* Allow text to be inline next to the image */
    margin-left: 10px; /* Space between image and text */
    vertical-align: middle; /* Align vertically with the image */
}

.user-info strong {
    font-weight: bold; /* Make the name bold */
}

.user-info span {
    font-weight: normal; /* Thinner text for the second line */
    color: #6c757d; /* Bootstrap muted color for the secondary text */
}

/* Background bar styles */
.bg-bar {
    padding: 4px 4px 3px 4px;
    border-radius: 6px;
    background: rgba(247, 248, 249, 1);
}

/* Button styles */
.btn-primary {
    background: rgba(130, 214, 188, 1) !important;
    border: rgba(130, 214, 188, 1) !important;
    color: rgba(29, 82, 82, 1) !important;
}

.btn-secondary {
    background: rgba(216, 241, 139, 1);
    border: rgba(216, 241, 139, 1);
    color: rgba(3, 15, 15, 0.7);
}

/* Card styles */
.card-one {
    background: rgba(35, 59, 55, 1);
}

.card-one h6 {
    color: rgba(130, 214, 188, 1) !important;
    font-size: 28px;
}

.card-two {
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.06);
    border: 0;
}

.card-two h6 {
    color: #000000 !important;
    font-size: 28px;
}

/* Icon container styles */
.icon-container {
    background: rgb(130 214 188 / 23%);
    border-radius: 6px;
    padding: 10px;
    backdrop-filter: blur(8.5px);
}

.otp-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}
/* Apply styling to the table cells */
.data-table-breakdown.table-bordered {
    border-collapse: separate;
    border-spacing: 10px; /* Adjust spacing between cells */
}
.data-table-breakdown.table-bordered th.main {
    background:#165944;
    color:white;
}
.data-table-breakdown.table-bordered th.secondary {
    background:#7DC1A1;
    color:white;
}
.data-table-breakdown.table-bordered th, 
.data-table-breakdown.table-bordered td {
    background-color: #f9f9f9; /* Light background for distinction */
    padding: 10px; /* Adjust padding inside cells */
    border: 1px solid #ddd; /* Add a border around cells */
    border-radius: 8px; /* Rounded corners for each cell */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for 3D effect */
    text-align: center; /* Center-align text */
}

/* Optional: Adjust table width and alignment */
.data-table-breakdown.table-bordered {
    width: 100%; /* Full-width table */
    margin: 20px 0; /* Add spacing around the table */
}

/* Style the table headers for emphasis */
.data-table-breakdown.table-bordered th {
    background-color: #eaeaea;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}
.data-table-breakdown td.highlighted {
    background:#9ACEB6;
    font-weight:500;
}
.data-table-breakdown td.total {
    background:#D0CECE;
    font-weight:500;
}
.arrow-cell {
    position: relative;
    padding-left: 40px; /* Space for the arrow */
}

.arrow-cell:after {
    content: '←'; /* Left arrow symbol */
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%); /* Center the arrow vertically */
    font-size: 20px; /* Arrow size */
}
.data-titles {
    color: #2BB288;
    font-weight: 700;
}
/* Responsive styles */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(100%);
    }

    #content {
        margin-right: 0;
    }

    #sidebar.active {
        transform: translateX(0);
    }

    .navbar {
        width: 100%; /* Full width on smaller screens */
        margin-right: 0;
    }
    #buttonMenu{
        width: 400px !important;
    }
}

@media all and (max-width: 1410px) {
    iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
}
@media all and (max-width: 990px) {
    #sidebar {
        right: -100%;
        z-index: 999;
    }
    #sidebar.active {
        right: 0em;
        padding-right: 1em;
    }
    #sidebar .logo {
        margin-top: 9em;
    }
    .navbar {
        width: 100%;
        margin: 0;
        z-index: 999999;
    }
    .navbar #sidebarToggle {
        margin-right: 2em;
    }
    .wrapper {
        width: 100%;
        margin-right: 0;
    }
    .wrapper .bg-bar {
        margin-right: 1em;
    }
    .navbar-nav {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-start !important;
    }
    .navbar-nav > li:not(.dropdown) {
        margin-top: 0.75em;
        margin-left: 0.75em;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 + .row {
        flex-direction: column;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 + .row > .col-md-4 {
        width: 100%;
    }
    .d-flex.justify-content-between.align-items-center.mb-4
        + .row
        > .col-md-4
        .card-body {
        padding: calc(var(--bs-card-spacer-y) * 2);
    }
}
@media all and (max-width: 682px) {
    .navbar-brand + .w-50 {
        width: 90% !important;
        margin: 1em auto;
    }
}