@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
:root
{
    --primary-color: #39454e;
    --primary-hover-color: #2b353c;
    --secondary-color: #fbe30c;
    --secondary-color-opacity: rgba(251, 227, 12, 0.2);
    --light-bg-color: #eff1f9;
    --light-grey: #f5f5f5;
}

body {
    font-family: "Roboto", sans-serif;
    background: #f6f7f9;
}

img
{
    border-radius: 5px;
}

.header
{
    display: flex;
    background-color: #fff !important;
}
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 75%;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #0f1535;
    transition: left 0.3s ease; /* Smooth transition for left position */
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px var(--secondary-color-opacity);
	background-color: var(--light-grey);
}

.sidebar::-webkit-scrollbar
{
	width: 6px;
	background-color: var(--light-grey);
}

.sidebar::-webkit-scrollbar-thumb
{
	background-color: var(--primary-color);
}

.show-sidebar {
    left: 0; /* Show sidebar */
}
.main-content {
    margin-left: 0;
    /* padding: 20px; */
}

.nav-link-slidebar
{
    padding: 5px 10px;
    color: var(--light-grey);
    font-size: 14px;
}

.nav-link-slidebar i
{
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: var(--secondary-color);
    color: #0f1535;
    border-radius: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.nav-link-slidebar:focus, .nav-link-slidebar:hover
{
    background-color: var(--secondary-color) !important;
    color: var(--primary-hover-color);
}

.nav-link-slidebar.active {
    padding: 10px;
    font-weight: bold;
    background-color: var(--light-grey) !important;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.input-group-text
{
    background: var(--secondary-color);
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .sidebar {
        left: 0;
        width: 310px;
    }
    .main-content {
        margin-left: 310px;
        padding: 30px 20px;
    }
    .header
    {
        display: none;
    }
}
.toggle-btn {
    font-size: 24px;
    cursor: pointer;
}

.more-info-btn
{
    cursor: pointer;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 40px 25px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}
.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-hover-color);
}
.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
}

.logo_side
{
    display: block;
    /* margin-bottom: 20px; */
    max-width: 250px;
}

.btn-primary
{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:active  {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: #fff;
}

.text-primary
{
    color: var(--primary-color) !important;
}

.border-primary
{
    border-color: var(--primary-color) !important;
}

.item-name
{
    font-size: 21px !important;
}

.card
{
    border: none;
    /* border-radius: 40px 5px !important; */
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.card-price {
    font-size: 1.5rem;
    font-weight: bold;
}
.card-heading {
    font-size: 1rem;
    font-weight: normal;
}

.all_data
{
    overflow-x: auto;
    padding-bottom: 50px;
}

.borewell_main_box .all_data
{
    overflow-x: unset;
}


.all_data .list-group-item
{
    margin-bottom: 10px;
    border: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

/* Custom CSS */
.row-custom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.card-custom {
    flex: 1;
    min-width: calc(50% - 0.5rem);
    border-radius: 0.5rem;
    background-color: var(--bs-body-bg, #fff);
    padding: 1rem; /* Equivalent to p-4 */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-custom .profit-percentage-box:first-child {
    border-right: 1px solid var(--primary-hover-color);
}


.profit-percentage-box
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.profit-percentage-box .card-title
{
    font-size: 64px;
    display: block;
    width: 100%;
}

.profit-percentage-box .card-text
{
    font-size: 22px;
}


.borewell_basic_info
{
    font-size: 14px;
    display: inline-block;
    margin-right: 10px;
}

.borewell_basic_info i
{
    margin-right: 3px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .card-custom {
        min-width: 100%; /* Full width on smaller screens */
    }

    .profit-percentage-box .card-title
    {
        font-size: 36px;
    }

    .profit-percentage-box .card-text
    {
        font-size: 18px;
    }
}