﻿body {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
}

:root {
    --rz-primary: #12b886 !important;
}

.validation-message {
    color: var(--tblr-danger);
}

/* Login CSS */
.login-card {
    max-width: 1200px;
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none !important;
}

.object-cover {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.btn-signIn {
    background-color: #1BAA9B !important;
    border-color: #1BAA9B !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.image-col {
    padding: 0;
    flex: 0 0 auto;
}

    .image-col img {
        display: block;
        height: 100%;
        width: auto;
    }

.left-col {
    flex: 2; /* bigger ratio */
}

.right-col {
    flex: 1; /* smaller ratio */
}

.welcome-banner {
    background-image: url('/Tabler/static/Masking.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    border: none;
    border-radius: 12px;
    color: white!important;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

    /* Using a flex container to position the left and right content */
    .welcome-banner .card-body {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem;
    }

    .welcome-banner h2 {
        font-weight: 600;
        margin: 0;
        font-size: 1.75rem;
        color: white;
    }

    .welcome-banner .text-muted {
        color: rgba(255, 255, 255, 0.8) !important;
        display: flex;
        align-items: center;
        gap: 1rem; /* Space between the button and the text */
        margin-top: 0.5rem;
    }

    .steps{
        width:80% !important;
    }

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .welcome-banner .card-body {
        flex-direction: column; /* stack vertically */
        align-items: flex-start; /* align left */
        gap: 1rem; /* spacing between sections */
    }

    .welcome-banner .steps {
        width: 100%; /* make steps span full width */
        margin-top: 1rem;
    }
}


.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* adjust size */
    height: 48px; /* adjust size */
    border-radius: 50%; /* makes it a circle */
}

    .avatar .icon {
        font-size: 20px; /* adjust icon size */
    }


/* Transparent base so widget looks clean */
.grid-stack-item-content {
    background-color: transparent;
}

.widget-placeholder {
    background-color: #3498db;
    color: white;
    text-align: center;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.widget-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.widget-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.widget-menu-button {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    cursor: pointer;
    padding: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    line-height: 1;
}

.widget-dropdown-menu {
    position: absolute;
    top: 35px;
    right: 5px;
    z-index: 10;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    min-width: 150px;
}

.widget-dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

    .widget-dropdown-item:hover {
        background-color: #f8f9fa;
    }

/* Remove the ugly resizer box */
.grid-stack > .grid-stack-item > .ui-resizable-handle {
    opacity: 0 !important;
    background: transparent !important;
}

/* Subtle widget outline effect */
.grid-stack-item {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Highlight on hover */
    .grid-stack-item:hover {
        border-color: #3498db;
        box-shadow: 0 0 10px rgba(52,152,219,0.4);
    }

    /* While dragging */
    .grid-stack-item.ui-draggable-dragging {
        border-color: #2980b9 !important;
        box-shadow: 0 0 15px rgba(41,128,185,0.6) !important;
    }

    /* While resizing */
    .grid-stack-item.ui-resizable-resizing {
        border-color: #e67e22 !important;
        box-shadow: 0 0 15px rgba(230,126,34,0.6) !important;
    }

.grid-stack {
    min-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.add-field-btn {
    background-color: #666666;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

    .add-field-btn:hover {
        background-color: #555555; 
        color: #fff;
    }


.field-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .field-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }

.image-carousel-wrapper-farm {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
    background-color: #f8f9fa;
}

.image-carousel-farm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-image-farm {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-nav-farm {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 10;
}

    .carousel-nav-farm:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .carousel-nav-farm.prev {
        left: 10px;
    }

    .carousel-nav-farm.next {
        right: 10px;
    }

.image-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #333;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-carousel-wrapper:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 12px;
}

.carousel-nav.next {
    right: 12px;
}

.fab-container {
    position: absolute;
    right: 20px;
    width: 48px;
    height: 48px;
    z-index: 15;
}

.fab-field {
    bottom: 185px;
}

.fab-plot {
    bottom: 265px;
}

.fab-settings {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #20c997;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

    .fab-settings:hover {
        transform: scale(1.1);
    }

    .fab-settings:focus {
        outline: none;
    }

.fab-dropdown-menu {
    position: absolute;
    bottom: 50px;
    right: 30px;
    list-style: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 0;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 120px;
    z-index: 20;
    border: 1px solid #e9ecef;
}

    .fab-dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .fab-dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem; /* Reduced gap */
        padding: 0.5rem 0.75rem; /* Adjusted padding */
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        color: #495057;
        cursor: pointer;
        font-size: 0.875rem;
    }

        .fab-dropdown-menu .dropdown-item.delete-action i {
            color: #d63939; /* Red color for delete icon */
        }

        /* Keep text color for delete item consistent on hover */
        .fab-dropdown-menu .dropdown-item.delete-action span {
            color: #d63939;
        }

.content-area {
    padding: 1.5rem;
    padding-top: 36px;
    background-color: white;
}

.field-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.field-address,
.field-size {
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.field-size {
    margin-bottom: 1.5rem;
}

.btn-view-details {
    background-color: #f1f3f5;
    color: #495057;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .btn-view-details:hover {
        background-color: #e9ecef;
    }

/* Ensure modal overlay + panel stay above the map */
.drawing-tool-overlay {
    position: fixed;
    inset: 0;
    z-index: 999; /* higher than leaflet */
    background: rgba(0,0,0,0.5);
}

.drawing-tool-panel {
    position: relative;
    z-index: 1100; /* keep panel contents above the map */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

/* Make sure header + toolbar stay above map controls */
.drawing-tool-header,
.drawing-tool-toolbar {
    position: relative;
    z-index: 1200;
    background: white;
}

/* Push Leaflet's toolbar below your custom UI */
.leaflet-draw-toolbar {
    z-index: 1000 !important;
}


.drawing-tool-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .drawing-tool-header .title-group {
        display: flex;
        flex-direction: column;
    }

    .drawing-tool-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 1.1rem;
        color: #333;
    }

    .drawing-tool-header p {
        margin: 0;
        font-size: 0.85rem;
        color: #666;
    }

.drawing-tool-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.toolbar-button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #495057;
}

    .toolbar-button:hover {
        background-color: #e9ecef;
    }

    .toolbar-button:disabled {
        color: #adb5bd;
        cursor: not-allowed;
    }

    .toolbar-button.active {
        background-color: #cfe2ff;
        color: #0d6efd;
    }

    .toolbar-button svg {
        width: 20px;
        height: 20px;
    }

.toolbar-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 8px;
}

.color-picker-wrapper {
    position: relative;
}

.color-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 1100;
    border: 1px solid #ddd;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    transition: transform 0.1s;
}

    .color-swatch:hover {
        transform: scale(1.1);
    }

.canvas-container-component {
    flex-grow: 1;
    overflow: auto;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}


/* Modal styles from original code */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    
}

.custom-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    z-index: 1200; /* Higher than backdrop */
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.toolbar-button i {
    font-size: 1.3rem; 
}

.page-background {
    background-color: #f8f9fa;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-section-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section-header h2 {
    font-weight: 600;
}

.btn-custom-map {
    background-color: #666666;
    color: white;
    border-color: #666666; 
    font-size:1rem;
}

    .btn-custom-map:hover {
        background-color: #555555; 
        border-color: #555555;
    }

.plot-dialog-custom {
    padding: 0;
}

.plot-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.plot-dialog-body {
    padding: 1.5rem;
}

.plot-dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-cancel-custom {
    border-color: #dee2e6;
    color: #495057;
}

    .btn-cancel-custom:hover {
        background-color: #f8f9fa;
    }

.btn-save-custom {
    background-color: #12b886; /* Teal color from screenshot */
    color: white;
    border-color: #12b886;
}

    .btn-save-custom:hover {
        background-color: #0ca678;
        border-color: #0ca678;
        color: white;
    }

.custom-page-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-group-item.active {
    background-color: #f8f9fa;
    color: var(--tblr-body-color);
    border-left: 3px solid var(--tblr-primary);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

.badge-quantity-planted {
    background-color: #1BAA9BB2;
    color:white;
}

.card-table thead th {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-save {
    font-size: 1.2rem;
    color: white;
    background-color: #717373;
}

.btn-cancel {
    font-size: 1.2rem;
    color: white;
    background-color: #7E0002;
}

.btn-add {
    background-color: #666666;
    color:white;
    border-radius:5px;
}

.icon-size {
    font-size: 1rem;
}

.section-card {
    background-color: #f1f0f0;
}

.task-bg {
    background-color: #f8f9fa;
}

.stage-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 1rem;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 20%;
    background-color: #12b886;
    color: white;
    font-weight: 600;
}

.task-list-row td {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem !important;
    border-top: none !important;
}

.task-list-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.task-list-container ul li {
    padding: 0.25rem 0;
}

.crop-stage-bg {
    background-color: #f8f9fa;
}

.crop-stage2-bg {
    background-color: white;
}

.scheduler-list-bg {
    background-color: #e9edf0;
    height: 768px;
    overflow-y: auto;
}

.card-clickable {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .card-clickable:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }

.plot-label {
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 14px;
    color: #000;
    /* Add a white outline to the text so it's readable on any map background */
    text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, -1px 1px 2px #fff;
}

.culture-picker-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 10;
}

    .culture-picker-container select {
        font-size: 0.9rem;
        border-radius: 0.25rem;
    }

.dashboard-map-container {
    display: flex;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius:10px;
    background-color: white;
}

.grid-stack-item-content {
    position: relative;
    overflow: hidden; 
}

.grid-stack-item-handle {
    position: absolute;
    top: 8px; 
    left: 8px;
    cursor: move;
    z-index: 1001; 
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.grid-stack-item-content:hover .grid-stack-item-handle {
    opacity: 1;
}

.worker-bg {
    background-color: #f3f3f3;
    border-radius: 10px;
}

.custom-blink {
    width: 12px !important;
    height: 15px !important;
    font-size: 0.75rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: white !important;
    padding: 0 !important;
}

.table-sticky-footer {
    background-color: #f8f9fa;
    border-top: 2px solid #dfe2e6;
    color: #1d273b;
}

.input-group-text-theme {
    background-color: #f8f9fa; 
    color: #6c757d; 
    border-color: #dce1e7; 
}

.stats-card-theme {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.stats-icon-theme {
    background-color: #ffffff; 
}

.text-main-theme {
    color: #212529;
}

.stats-border-theme {
    border-color: #dee2e6 !important;
}

.empty-state-theme {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.text-secondary-theme {
    color: #6c757d !important; 
}

.payment-card-theme {
    background-color: #f8f9fa;
}

.alert-info-theme {
    background-color: #e3f2fd;
    color: #0c5460; 
}

.manager-card-theme {
    background-color: #f3f0ff;
    border: 1px solid #e5dbff;
}

.manager-text-theme {
    color: #5f3dc4;
}

.manager-icon-theme {
    background-color: #ffffff;
    color: #5f3dc4;
}

.list-group-item {
    transition: all 0.2s ease;
    background-color: transparent;
}

    .list-group-item:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
    }

.active-batch {
    background-color: #e6f7ff !important;
    border-left: 4px solid #12b886 !important;
    color: #007bff;
}

.active-batch h5 {
    font-weight: bold;
    color: #0056b3;
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Very dark background */
    z-index: 9999; /* Higher than Bootstrap Modal (usually 1055) */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    transition: transform 0.2s;
}

    .gallery-nav-btn:hover {
        transform: scale(1.1);
        background-color: #495057;
    }

.gallery-img {
    transition: opacity 0.3s ease-in-out;
}

/* =================================================================== */
/* DARK MODE OVERRIDES                                                 */
/* =================================================================== */
[data-bs-theme="dark"] {
    /* Welcome Banner: Consider creating a darker version of your background image */
    .welcome-banner {
        background-image: url('/Tabler/static/Masking.png'); /* Assumes you create a dark version */
    }
    /* Widgets & Dropdowns */
    .widget-menu-button {
        background: rgba(36, 41, 55, 0.6); /* Dark semi-transparent background */
    }

    .widget-dropdown-menu,
    .fab-dropdown-menu {
        background-color: var(--tblr-bg-surface);
        border-color: var(--tblr-border-color);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.3);
    }

    .widget-dropdown-item {
        color: var(--tblr-body-color);
    }

        .widget-dropdown-item:hover {
            background-color: var(--tblr-bg-surface-hover);
        }

    .fab-dropdown-menu .dropdown-item {
        color: var(--tblr-body-color);
    }
    /* Gridstack Hover/Drag Effects */
    .grid-stack-item:hover {
        box-shadow: 0 0 10px rgba(52,152,219,0.5);
    }

    .grid-stack-item.ui-draggable-dragging {
        box-shadow: 0 0 15px rgba(41,128,185,0.7) !important;
    }

    .grid-stack-item.ui-resizable-resizing {
        box-shadow: 0 0 15px rgba(230,126,34,0.7) !important;
    }
    /* Field Card */
    .field-card {
        border-color: var(--tblr-border-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

        .field-card:hover {
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }
    /* Image Carousel Navigation */
    .carousel-nav {
        background-color: rgba(30, 30, 30, 0.7);
        color: #fff;
    }

    .field-name {
        color: white;
    }
    /* Content & Text */
    .content-area {
        background-color: var(--tblr-body-bg);
    }

    .field-address,
    .field-size {
        color: var(--tblr-secondary);
    }

    .btn-view-details {
        background-color: var(--tblr-bg-surface);
        color: var(--tblr-body-color);
    }

        .btn-view-details:hover {
            background-color: var(--tblr-bg-surface-hover);
        }
    /* Drawing Tool Panel & Modals */
    .drawing-tool-panel,
    .drawing-tool-header,
    .custom-modal-dialog,
    .color-picker-dropdown {
        background: var(--tblr-bg-surface);
        color: var(--tblr-body-color);
    }

    .drawing-tool-header,
    .drawing-tool-toolbar {
        border-bottom-color: var(--tblr-border-color);
    }

        .drawing-tool-header h5,
        .drawing-tool-header p {
            color: var(--tblr-body-color);
        }

    .drawing-tool-toolbar {
        background-color: var(--tblr-bg-surface-secondary);
    }

    .toolbar-separator {
        background-color: var(--tblr-border-color);
    }

    .toolbar-button {
        color: var(--tblr-secondary);
    }

        .toolbar-button:hover {
            background-color: var(--tblr-bg-surface-hover);
            color: var(--tblr-body-color);
        }

        .toolbar-button.active {
            background-color: var(--tblr-primary-lt);
            color: var(--tblr-primary);
        }

        .toolbar-button:disabled {
            color: var(--tblr-disabled-color);
        }

    .canvas-container-component {
        background-color: #111318; /* A very dark grey for canvas background */
    }

    .fields-wrapper {
        background-color: none;
    }

    .form-section-title {
        color: white;
    }

    .page-background {
        background-color: var(--tblr-body-bg);
        min-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .form-section-card {
        background-color: var(--tblr-bg-surface);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .btn-custom-map {
        background-color: #4a4a4a;
        color: white;
        border-color: #4a4a4a;
    }

        .btn-custom-map:hover {
            background-color: #5a5a5a;
            border-color: #5a5a5a;
        }

    .plot-dialog-header,
    .plot-dialog-footer {
        border-color: var(--tblr-border-color);
    }
    /*    .btn-cancel-custom {
        border-color: var(--tblr-border-color);
        color: #676464;
    }

        .btn-cancel-custom:hover {
            background-color: var(--tblr-bg-surface-hover);
        }*/

    .custom-page-card {
        background-color: var(--tblr-bg-surface);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .section-card {
        background-color: #1b293a;
    }

    .list-group-item.active {
        background-color: var(--tblr-bg-surface-secondary);
    }

    .card-table thead th {
        background-color: var(--tblr-bg-surface-secondary);
        border-bottom-color: var(--tblr-border-color-translucent);
        color: var(--tblr-secondary);
    }

    .btn-save {
        font-size: 1.2rem;
        color: white;
        background-color: #717373;
    }

    .btn-cancel {
        font-size: 1.2rem;
        color: white;
        background-color: #7E0002;
    }
    /*    .btn-cancel-custom {
        border-color: #dee2e6;
        color: #676464;
    }

        .btn-cancel-custom:hover {
            background-color: #f8f9fa;
        }

    .btn-save-custom {
        background-color: #12b886;
        color: white;
    }

        .btn-save-custom:hover {
            background-color: #0ca678;
        }*/

    .task-bg {
        background-color: #151f2c;
    }

    .note-editing-area {
        background-color: white;
    }

    .stage-title {
        color: var(--tblr-secondary);
    }

    .task-list-row td {
        background-color: var(--tblr-bg-surface-secondary);
    }

    .task-list-title {
        color: var(--tblr-secondary);
    }

    .crop-stage-bg,
    .crop-stage2-bg {
        background-color: transparent;
    }

    .scheduler-list-bg {
        background-color: transparent;
    }

    .btn-cancel-custom {
        border-color: var(--tblr-border-color);
        color: var(--tblr-body-color);
    }

        .btn-cancel-custom:hover {
            background-color: var(--tblr-bg-surface-hover);
        }

    .item-text {
        color: white;
    }

    .item-content:hover {
        background-color: transparent;
    }

    .dashboard-map-container {
        background-color: #182433;
    }

    .worker-bg {
        background-color: #28313d;
        border-radius: 10px;
    }

    .table-sticky-footer {
        background-color: #1e293b;
        border-top: 2px solid #374151;
        color: #f8f9fa;
    }

    .input-group-text-theme {
        background-color: #1e293b;
        color: #d1d5db;
        border-color: #374151;
    }

    .stats-card-theme {
        background-color: #1e293b;
        border-color: #374151 !important;
    }

    .stats-icon-theme {
        background-color: #0f172a;
    }

    .text-main-theme {
        color: #e2e8f0;
    }

    .stats-border-theme {
        border-color: #374151 !important;
    }

    .empty-state-theme {
        background-color: #1e293b;
        color: #94a3b8;
        border-color: #374151;
    }

    .text-secondary-theme {
        color: #adb5bd !important;
    }

    .payment-card-theme {
        background-color: #1e293b;
    }

    .alert-info-theme {
        background-color: #0c4a6e;
        color: #e0f2fe;
    }

    .manager-card-theme {
        background-color: #272438;
        border: 1px solid #383452;
    }

    .manager-text-theme {
        color: #d0bfff;
    }

    .manager-icon-theme {
        background-color: #383452;
        color: #d0bfff;
    }

    .custom-page-card {
        background-color: #1e293b;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    }

    .active-batch {
        background-color: #1e3a8a !important;
        border-left-color: #12b886 !important;
        color: white;
    }

        .active-batch h5 {
            color: white;
        }

    .list-group-item:hover {
        background-color: #334155;
    }
    
}