html, body {
    height: 100%; /* Ensure body takes full height */
    margin: 0;
    padding: 0;
    font-family: 'Roboto';
    background-color: #ffffff;
}

.container {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.img {
    background-image: url('/images/rice.jpg');
    background-size: cover; /* Changed to cover for full background */
    background-position: center;
    background-repeat: no-repeat;
}

.card-laptop {
    background-image: url('/images/home_img.svg');
    background-size: cover; /* Changed to cover for full background */
    /* background-position: center; */
    background-repeat: no-repeat;
}

label,div{
    color:black
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 576px) {
    .navbar-content {
        gap: 0rem;
    }
}
@media (min-width: 1200px) {
    .navbar-content {
        gap: 1rem;
    }
}
.main-container {
    height: 75vh;
    width: 100%;
    /* margin-top: 80px; */
    overflow-x: hidden;
    position: relative;
    text-align: left;
    overflow: hidden;
}

.sub-container {
    height: 75vh;
    width: 100%;
    margin-top: 80px;
    overflow-x: hidden;
    position: relative;
    text-align: left;
    overflow: hidden;
}

.overlay-text {
    position: absolute;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
}

.sub-text {
    position: absolute;
    top: 35%; /* Adjust as needed */
    left: 20%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

.container-xl{
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.container-fluid{
    padding-left: 0px;
    padding-right: 0px;
}

.box-container {
    display: inline-flex;
    font-family: 'Roboto';
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 150px;
    /* background-color: #D4D1D1; */
    border-radius: 5px;
    color: black;
    text-decoration: none;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

#map {
    z-index: 1;
}

#irrigation-btn, #pest-btn {
    text-decoration: none;
}

#irrigation-btn:hover {
    background-color: #f6f8f9 !important;
}

.btn-box:not(:disabled):not(.disabled).active {
    background-color: #D4D1D1 !important;
}

.btn-box {
    background-color: #f6f8f9 !important;
}


#pest-btn:hover {
    background-color: #E5E1DA !important;
}

.btn-primary{
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: transform 0.2s;
}

h4,h5,h6{
    color: black;

}
.div_fit{
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: transform 0.2s;
}

.form-control::placeholder {
    color: #878680;
    opacity: 1;
}

.form-control {
    border-radius: 10px;
}

.app-footer {
    display: none;
}
.page-body {
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    h4 {
        margin-bottom: 2rem;

    }
}
@media (min-width: 1024px) {
    h4 {
        font-size: 1rem !important;
    }
}

@media (min-width: 1200px) {
    h4 {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 576px) {
    .credit-container {
        padding: 1rem;
    }
}

@media (min-width: 960px) {
    .credit-container {
        padding: 2rem;
    }
}

@media (min-width: 1400px) {
    .col-xxl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.polygon-label {
    font-size: 10px;
    font-weight: bold;
    background: transparent;
    border: transparent;
    color: white;
    box-shadow: none !important;
}

.circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); /* Adds a shadow */
}
.footer {
    position: sticky;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: red;
    color: white;
    text-align: center;
    box-shadow: 0 -3px 10px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    color: white;
    padding: 1rem 0;
}

@keyframes fade {
    from { opacity: 0.5; }
}

.blinking {
    animation: fade 1s infinite alternate;
}

.text{
        text-align: left;
        font-family: 'Roboto';
        color:white
}
.text_v2{
    font-size: 2.5rem;
    margin-top: 0.5rem;
}

.text{
    font-size: 2rem;
}
.info-container {
    margin-top:-5rem;
    position: relative;
    padding: 1rem;
    gap:1rem
}
.card-body-schedule{
    padding-left:4rem;
    padding-right:4rem
}
.cover-on-map-active {
    width: 34;
    height: 35px;
    margin-bottom: 1rem;
    border-radius: 5px;
    padding: 3px;
    cursor: pointer;
    text-align: center;
    color: #000000;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

.cover-on-map {
    width: 34;
    height: 35px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    border-radius: 5px;
    padding: 3px;
    cursor: pointer;
    color: white;
    text-align: center;
    background: darkgrey;
    background-clip: padding-box;
}


.cover-detail-map-border {
    width: 100%;
    /* min-height: 600px; */
    /* border: 1px solid #000000d4; */
    border-radius: 10px;
    padding: 8px;
    background-color: transparent;
}

.cover-search-map {
    /* width: 97%; */
    top:11rem;
    left:10px;
    padding-left: 0px;
    padding-right: 0px;
    margin-right: 0px;
}

.cover-search-map-border {
    width: 100%;
    border: 1px solid #fff;
    /* border-radius: 10px; */
    padding: 2px;
    background-color: #fff;
    overflow: auto;
    /* height: 50vmin; */
    /* overflow-y: hidden; */
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.half-circle{
    top:2rem;
    height:50px;
    width:30px;
    margin-bottom: 0rem;
    border-radius: 8px 0px 0px 8px;
    cursor: pointer;
}


menu, ol, ul {
    list-style: none;
    width: 100%;
}
li{
    height: 2.5rem;
    display: flex;
    align-items: center;
}
/* .leaflet-control-geocoder-form input {
    color: black !important;
    background-color: white;
    width: 155px !important;
    font-size: 13px !important;
    font-family: 'Roboto' !important;
} */

.marker-detail-card {
    display: none;
}

.plot-detail-card {
    display: none;
}

.pest-detail-card {
    display: none;
}
#plot-content{
    max-height: 16rem;
}

#status-container-plot, #status-container-report, #status-container-plot-mobile, #status-container-report-mobile{
    position: absolute;
    z-index: 100;
    background-color: white;
    border: 1px solid gainsboro;
    padding: 5px;
    border-radius: 5px;
}

@media only screen and (min-width: 300px) {

    .sub-container {
        /* margin-top: 20px; */
        padding: 2rem;
    }
    .text{
        font-size: 1.5rem;
    }
    .text_v2{
        font-size: 2rem;
    }

    .select-container {
        flex-direction: column;
        align-items: baseline;
    }
    .detection-container {
        flex-direction: column;
    }
    #schedule-view{
        flex-wrap:nowrap;
        padding-left:1rem;
        padding-right:0rem;
    }

    .schedule-view-card{
        display: none;
    }
    .schedule-view-card-active{
        display: flex;
        height: 100%;
    }

    .sch-text-card{
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }

    .schedule-text{
        padding-bottom:2rem;
    }

    .mobile-view{
        display: flex;
    }
    .mobile-view-footer{
        display: flex;
    }
    .laptop-view{
        display: none;
    }
    .mobile-view-active{
        display: flex;
    }

    .mobile-view-hidden{
        display: none;
    }

    .footer-text{
        margin-bottom: 0rem;
        font-size: 1rem;
    }
    .footer-container{
        flex-direction: column;
        height:100%
    }

    .footer-text{
        margin-bottom: 0rem;
    }
    .col-12-map-container{
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 0rem;
    }
    .card-body{
        padding: 0rem;
        padding-top: 1.25rem;
    }
    .card-body-filter{
        padding-top: 0.25rem;
    }
    .row-map{
        display: flex;
        flex-wrap: wrap;
        margin-right: 0px;
        margin-left: 0px;
        transition: opacity 0.5s ease-in-out;
        height: auto;
        overflow: hidden;

    }

    .row-map.hidden {
        display: none;

    }

    .timeline-container{
        width: 200vh;
    }

    #map-title{
        font-size: x-large;
        margin-top: 1rem;
        padding-left: 0rem;
    }

    .task-text{
        height: 4rem;
    }
    .task-text2{
        height: 2rem;
    }

    .cover-detail-map {
        left:30px;
        width: 92%;
        padding-left: 0px;
        padding-right: 0px;
        margin-right: 0px;
    }

    /* Main Container for Irrigation Schedule */
    .schedule-container {
        width: 100%;
        height: 0;
        z-index: 900;
        background-color: #FFF;
        border-radius: 12px;
        padding: 20px;
        padding-top: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        position:absolute;
        transition: all 0.4s ease;
        overflow: hidden;
    }

    .schedule-container.expanded {
        height: 100% !important;
    }

    .schedule-container.half {
        height: 50% !important;
    }

    .schedule-container.partial {
        height: 110px !important;
    }

    .schedule-container.mobile-view {
        bottom: 0;
        left: 0;
        width:100%;
        height:0;
        transition: height 0.4 ease;
    }

    .schedule-container.desktop-view {
        width:400px;
        position: fixed;
    }

    .close-btn {
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color:#000000;
    }

    .close-btn.desktop-view {
        top:10px;
        right:10px;
        position:absolute;
    }

    .grab-bar {
        width: 33%;
        height: 6px;
        background-color: #b0b0b0;
        border-radius: 3px;
        margin: 10px auto;
        cursor:grab;
        display: flex;
        flex: 0 0 auto;
        box-sizing: border-box;
        z-index:2000;
    }

    /* Title styling */
    .schedule-title {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 2px;
    }

    .field-name {
        font-size: 14px;
        font-weight:500;
        color: #70706C;
        margin-bottom: 20px;
    }

    .irrigation-container {
        overflow-y: scroll;
        height:75%;
        box-sizing: border-box;
        background-color:#F8F7F0;
        border-radius:8px
    }

    /* Irrigation Schedule Heading */
    .irrigation-heading {
        text-align: center;
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 15px;
        margin-top: 15px;
    }

    /* Status badges */

    .status-completed .status-circle { background-color: #48C774; }
    .status-in-progress .status-circle { background-color: #FFDD57; }
    .status-to-do .status-circle { background-color: #FF6B6B; }

    .status-bar {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
        margin-left:30px;
        margin-right:30px;
        background-color: #fff;
        border-radius: 8px;
    }

    .status-item {
        display: flex;
        align-items: center;
        font-size: 12px;
        font-weight: bold;
    }

    .status-circle {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 5px;
        background-color: #48C774;
    }

    /* Timeline container */
    .timeline {
        position: relative;
        padding-left: 25px;
        border-left: 4px solid #c2c2c2;
        margin-left: 10px;
    }

    /* Individual timeline item */
    .timeline-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 20px;
        position: relative;
    }

    .timeline-icon {
        width: 18px;
        height: 18px;
        background-color: #48C774;
        border-radius: 50%;
        position: absolute;
        left: -35px;
        top: 10px;
        border: 2px solid #fff
    }

    /* Timeline content box */
    .timeline-content {
        background-color: #EEF5E4;
        padding: 12px;
        border-radius: 8px;
        width: 100%;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
        margin-right: 15px;
    }

    .timeline-title {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .timeline-details {
        font-size: 12px;
        color: #555;
        line-height: 1.5;
    }
    #map-view{
        padding-top:2rem;
    }

    .filter-setting{
        right:10px;
        top:1rem;
    }

}

@media only screen and (max-width: 450px) {

    .plot-detail-card, .pest-detail-card {
        width: 100%;
        height: 0;
        z-index: 900;
        background-color: #FFF;
        border-radius: 12px;
        padding: 20px;
        padding-top: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        position: absolute;
        transition: all 0.4s ease;
        overflow: hidden;
    }
    .plot-detail-card.half, .pest-detail-card.half {
        height: 50% !important;
    }
    .plot-detail-card.expanded, .pest-detail-card.expanded {
        height: 100% !important;
    }
    .plot-detail-card.partial, .pest-detail-card.partial {
        height: 270px !important;
    }
    .plot-detail-card.mobile-view, .pest-detail-card.mobile-view {
        bottom: 0;
        left: 0;
        width:100%;
        height:0;
        transition: height 0.4 ease;
    }
    .plot-detail-card.show, .pest-detail-card.show {
        max-height:100vh;
        height:auto;
    }
    .cover-detail-map-plot {
        display: none !important;
    }

    .mobile-view-hidden-asset, .mobile-view-hidden-task{
        display: flex !important;
    }
    .laptop-view-hidden-asset, .laptop-view-hidden-task {
        display: none !important;
    }
    #asset-style {
        padding-left: 0px;
    }
    .col-lg-6{
        padding-right: 5px;
        padding-left: 5px
    }

    .asset-report-view{
        height: 97vh;
    }

}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    #content-mobile-view, #schedule-view-mobile{
        display: none;
    }
    .mobile-view-hidden, .schedule-view-laptop{
        display: flex;
    }

    .sub-container {
        margin-top: 20px;
    }

    .main-container {
        height: 105vh;
    }
    .sub-container {
        padding: 15%;
        padding-bottom:12rem;
    }
    .select-container {
        flex-direction: column;
        align-items: center;
    }
    .col-lg-6{
        width: 30%;
        padding-right: 5px;
        padding-left: 5px
    }
    .detection-container {
        flex-direction: row;
    }
    #schedule-view{
        flex-wrap:nowrap;
        padding-left:2rem;
        padding-right:2rem;
    }

    .schedule-view-card{
        display: block;
    }
    .schedule-view-card-active{
        display: block;
    }
    .sch-text-card{
        display: flex;
        flex-direction: column;
        /* row-gap: 1rem; */
    }

    .card-body-schedule{
        padding-left:0rem;
        padding-right:0rem
    }

    .schedule-text{
        padding-bottom:0rem;
    }

    h6 {
        min-height: 4rem;
    }

    .col-12-map-container{
        position:relative;
        overflow: hidden;
        /* padding-left: 15px; */
        /* padding-right: 15px; */
        padding-bottom: 1rem;
    }
    .card-body{
        padding: 1.25rem;
    }
    .card-body-filter{
        padding: 0rem;
    }
    .row-map{
        display: flex;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }
    .row-map.hidden {
        display: none;
    }

    .footer {
        display: none;
    }
    #map-title{
        font-size: xx-large;
        margin-top: 0rem;
        /* display: none; */
    }
    #map-title-icon, .mobile-view-hidden-asset, .mobile-view-hidden-task {
        display: none !important;
    }
    .laptop-view-hidden-asset, .laptop-view-hidden-task {
        display: flex !important;
    }
    /* .mobile-view-hidden-task {
        display: block !important;
    } */
    .task-text{
        height: 2rem;
    }
    .task-text2{
        height: 2rem;
    }

    .cover-detail-map {
        left:60px;
        width: 95%;
        padding-left: 0px;
        padding-right: 0px;
        margin-right: 0px;
    }

    #map{
        height: 70vh !important;
    }


    .schedule-container.mobile-view {
        right: 0;
    }

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .main-container {
        height: 45vh;
    }
    /* .sub-container {
        margin-top: 00px;
        padding: 2rem;
    } */
    .card-body-schedule{
        padding-left:4rem;
        padding-right:4rem
    }
    .schedule-text{
        padding-bottom:0rem;
    }
    .schedule-text-1{
        padding-bottom:2rem;
    }

    h6 {
        min-height: 3rem;
    }

    .footer-text{
        margin-bottom: 2rem;
    }
    .timeline-container{
        width: 100%;
    }

    .cover-detail-map-plot {
        right:40px;
        width: 500px;
        padding-left: 0px;
        padding-right: 0px;
        margin-right: 0px;
        /* text-align: center; */
        /* padding: 1rem; */
        top: 8rem;
        /* border-radius: 10px; */
        /* opacity: 0.9; */
    }
    .plot-detail-card, .pest-detail-card{
        display: none !important;
    }
}
@media only screen and (min-width: 800px) {
    .schedule-text{
        padding-bottom:2rem;
    }
    .main-container {
        height: 80vh;
    }
}

@media only screen and (min-width: 820px) {
    .schedule-text-3{
        padding-bottom:0rem;
    }

    .filter-setting{
        left:10px;
        top:17rem;
    }

}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .schedule-text-3{
        padding-bottom:2rem;
    }

    .footer-container {
        flex-direction: row;
        height: auto;
    }
    #scrollbar-design{
        max-height: 16rem;
    }

    #plot-content{
        max-height: 13rem;
    }

    .col-lg-6 {
        max-width: 30%;
    }
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #asset-style {
        padding-left: 12rem;
    }

    #map-view{
        padding-top:6rem;
    }
    #map-title{
        padding-left:11rem
    }
    .mobile-view-footer{
        display: none;
    }
    .mobile-view{
        display: flex;
    }
    .mobile-view-active{
        display: flex;
    }


    .mobile-view{
        display: none;
    }
    .laptop-view{
        display: flex;
    }

    .text{
        font-size: 5rem;
    }
    .text_v2{
        font-size: 2.5rem;
        margin-top: 0.5rem;
    }
    .text_v3{
        font-size: 2rem;
    }
    .main-container {
        height: 80vh;
    }
    .sub-container {
        margin-top: 80px;
        padding: 10%;
        padding-bottom:12rem;
    }

    .info-container {
        gap: 5rem;
    }
    h6 {
        min-height: 0rem;
    }
    #plot-content{
        max-height: 16rem;
    }
    #scrollbar-design{
        max-height: 16rem;
    }

}

@media only screen and (min-width: 1400px) {
    #plot-content{
        max-height: 17rem;
    }

    #scrollbar-design{
        max-height: 14rem;
    }
}

@media only screen and (min-width: 1600px) {
    #plot-content{
        max-height: 19rem;
    }

    #scrollbar-design{
        max-height: 16rem;
    }
}


@media only screen and (max-width: 400px) {
    .resize-icon{
        width: 80px !important;
    }
}

.legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-list li {
    display: flex;
    gap: 8px;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

/* Colors */
.legend-box.red {
    background-color: #ff3874;
}

.legend-box.yellow {
    background-color: #effa02;
}

.legend-box.blue {
    background-color: #92e3e6;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #2c7be5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
