/*
.header-wrapper{
    background-color: #e6e5db !important;
}

.sidebar-wrapper {
    background-color: #e6e5db !important;
}
*/

.sidebar-header {
    background-color: #073D30 !important;
}

.sidebar-body {
    background-color: #ecf7eb !important;
}

.upgrade-banner {
    background-color: #073D30 !important;
}

.tab-content {
    min-height: 600px;
}

.setttings-tab-header {
    display: grid;
    align-items: center;
    font-size: 19px !important;
}

.table-btn-bg-success {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.2px;
    font-family: "Urbanist";
    padding: 5px 12px;
    border-radius: 8px;
    background: #22c55f;
    color: #FFF;
}

.table-btn-bg-danger {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.2px;
    font-family: "Urbanist";
    padding: 5px 12px;
    border-radius: 8px;
    background: #e2373d;
    color: #FFF;
}

.table-btn-bg-warning {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.2px;
    font-family: "Urbanist";
    padding: 5px 12px;
    border-radius: 8px;
    background: #eab308;
    color: #FFF;
}

.table-btn-bg-default {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.2px;
    font-family: "Urbanist";
    padding: 5px 12px;
    border-radius: 8px;
    background: #918d8d;
    color: #FFF;
}

.table-btn-bg-primary {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.2px;
    font-family: "Urbanist";
    padding: 5px 12px;
    border-radius: 8px;
    background: #115cbe;
    color: #FFF;
}

.me-2 button {
    background-color: transparent !important;
}

/* Flowbite progress bar */
.bg-green-600 {
    background-color: #059669;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-yellow-600 {
    background-color: #fbbf24;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-gray-400 {
    background-color: #b8b8b8;
}


/* Map */
#add-field-nodal-map {
    height: 400px;
    width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    z-index: 1;
}

/* Sidebar Map Styles */
#main-map {
    height: 300px !important;
    width: 100% !important;
    border-radius: 0.75rem;
    z-index: 1;
    position: relative;
}

/* Ensure map container has proper dimensions */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    border-radius: 0.75rem;
}

/* Fix map controls positioning */
/*
.leaflet-control-container .leaflet-control {
    margin: 10px;
}
*/

/* Ensure map tiles load properly */
.leaflet-tile-pane {
    opacity: 1;
}

/* Fix map attribution positioning */
.leaflet-control-attribution {
    font-size: 9px;
    padding: 2px 4px;
}

/* Ensure proper stacking context */
.leaflet-pane {
    z-index: 400;
}

.leaflet-control {
    z-index: 800;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 1000;
}

/* Leaflet GeoSearch Controller */
.leaflet-touch .leaflet-geosearch-bar form {
    display: flex;
}

.leaflet-control-geosearch.active form {
    /* display: flex; */
    min-height: 30px;
}

.leaflet-control-geosearch.active .reset {
    display: none;
}

.leaflet-control-geosearch a.leaflet-bar-part:before {
    top: 17px;
    left: 13px;
    width: 9px;
    border-top: 3px solid #555;
    transform: rotateZ(45deg);
}

.leaflet-control-geosearch a.leaflet-bar-part:after {
    top: 8px;
    left: 8px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: 3px solid #555;
}

.leaflet-control-geosearch form input {
    min-width: 200px;
    width: 100%;
    outline: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    height: 30px;
    border: none;
    border-radius: 0px;
    text-indent: 8px;
}

/* Calendar Widget */
.calendar__header {
    background-color: #079669 !important;
    padding-bottom: 15px !important;
}

.color-calendar.glass .calendar__body {
    border-radius: 0px !important;
}

.calendar__monthyear {
    font-size: 20px !important;
}

.calendar__weekdays {
    color: #079669 !important;
}

.calendar__days {
    font-size: 13px !important;
}

/* Login Page Background Slider */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .background-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
  }
  .slick-slide {
    height: 100%;
  }
  .slick-list, .slick-track {
    height: 100%;
  }
  .slick-slider {
    height: 100%;
  }
  

/* DATATABLES PAGINATION */
.datatable-pagination ul {
    margin: 0;
    padding-left: 0;
}

.datatable-pagination li {
    list-style: none;
    float: left;
}

.datatable-pagination li.datatable-hidden {
    visibility: hidden;
}

.datatable-pagination a,
.datatable-pagination button {
    border: 1px solid transparent;
    float: left;
    margin-left: 2px;
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.datatable-pagination a:hover,
.datatable-pagination button:hover {
    background-color: #d9d9d9;
}

.datatable-pagination .datatable-active a,
.datatable-pagination .datatable-active a:focus,
.datatable-pagination .datatable-active a:hover,
.datatable-pagination .datatable-active button,
.datatable-pagination .datatable-active button:focus,
.datatable-pagination .datatable-active button:hover {
    background-color: #d9d9d9;
    cursor: default;
}

.datatable-pagination .datatable-ellipsis a,
.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-ellipsis button,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
    pointer-events: none;
    cursor: default;
}

.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
    cursor: not-allowed;
    opacity: 0.4;
}

.datatable-pagination .datatable-pagination a,
.datatable-pagination .datatable-pagination button {
    font-weight: bold;
}		  


/* Custom styles for Select2 to match form inputs */
.select2-container--default .select2-selection--multiple {
    /* Match h-14 */
    min-height: 3.5rem; /* 56px */
    height: auto !important; /* Allow height to adjust for multiple tags */

    /* Match rounded-xl */
    border-radius: 0.75rem; /* 12px */

    /* Match border-0 bg-bgray-50 */
    border: 0;
    background-color: #f9fafb; /* Matches bgray-50 */

    /* Match p-4 */
    padding: 0.75rem 1rem; /* py-3 px-4 (adjusting slightly for tags) */

    /* Default border color */
    border: 1px solid transparent; /* Add a transparent border to handle focus */

    /* Remove default outline/focus ring */
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    /* Match focus:border focus:border-success-300 focus:ring-0 */
    border-color: #4ade80; /* Matches success-300 */
    /* outline: 0; */ /* Handled by default now */
    /* box-shadow: none; */ /* Handled by default now */
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    /* Match font-medium placeholder:text-bgray-900 */
    color: #111827; /* Matches bgray-900 */
    font-weight: 500;
    padding: 0; /* Remove default padding to align with input padding */
    margin: 0; /* Remove default margin */
    display: flex; /* Enable flex to align tags */
    flex-wrap: wrap; /* Allow tags to wrap */
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    /* Match input text styling */
    color: #111827; /* Matches bgray-900 */
    font-weight: 500;
    background-color: transparent;
    border: 0;
    outline: 0;
    padding: 0; /* Adjust padding */
    height: 1.5rem; /* Adjust height to align with tags */
    margin: 0.25rem; /* Add margin to align with tags */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    /* Style for selected tags */
    background-color: #d1fae5; /* Light green background */
    color: #065f46; /* Dark green text */
    border: 1px solid #a7f3d0; /* Green border */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.25rem 0.5rem; /* py-1 px-2 */
    margin-top: 0.25rem; /* mt-1 */
    margin-right: 0.25rem; /* mr-1 */
    font-weight: 500;
    font-size: 0.875rem; /* text-sm */
    display: flex; /* Use flex to align tag content */
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    /* Style for the remove button on tags */
    color: #065f46; /* Dark green */
    margin-right: 0.25rem;
    padding: 0;
    margin-left: 0.25rem; /* Add margin */
    border: none;
    background: none;
    float: none; /* Remove float */
    font-size: 1rem; /* Adjust size */
    font-weight: bold;
}

/* Dark mode styles */
.dark .select2-container--default .select2-selection--multiple {
    background-color: #374151; /* Matches darkblack-500 */
    border-color: transparent; /* Keep border transparent */
}

.dark .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #10b981; /* Darker green for focus in dark mode */
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #ffffff; /* White text */
}

.dark .select2-container--default .select2-selection--multiple .select2-search__field {
    color: #ffffff; /* White text */
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #10b981; /* Darker green background */
    color: #ffffff; /* White text */
    border-color: #065f46; /* Even darker green border */
}

.dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff; /* White */
}

/* Adjust dropdown styles */
.select2-container--default .select2-dropdown {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb; /* bgray-200 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
    background-color: #ffffff; /* white */
    overflow: hidden; /* Hide overflow for rounded corners */
}

.dark .select2-container--default .select2-dropdown {
    background-color: #374151; /* darkblack-500 */
    border-color: #4b5563; /* gray-600 */
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem; /* py-3 px-4 */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #d1fae5; /* Light green */
    color: #065f46; /* Dark green */
}

.dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #10b981; /* Darker green */
    color: #ffffff; /* White */
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e5e7eb; /* bgray-200 */
    color: #111827; /* bgray-900 */
    position: relative; /* Needed for checkmark */
    padding-left: 2.5rem; /* Make space for checkmark */
}

.select2-container--default .select2-results__option[aria-selected=true]::before {
    content: '\2713'; /* Checkmark symbol */
    position: absolute;
    left: 1rem;
    color: #065f46; /* Dark green */
    font-weight: bold;
}

.dark .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #4b5563; /* gray-600 */
    color: #ffffff; /* White */
}

.dark .select2-container--default .select2-results__option[aria-selected=true]::before {
    color: #ffffff; /* White checkmark */
}

.select2-container .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
}

.select2-selection__choice {
    padding-right: 25px !important;
}
.select2-selection__choice__remove {
    right: 5px !important;
    left: auto !important;
}

/* Select2 initialization for modals */
#common_crops1, #common_crops2 {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 4px 4px 0 0 !important;
    padding: 2px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 4px !important;
    margin-right: 0 !important;
    padding: 0 4px !important;
}
