@import '../src/styles/colors.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
    font-family: 'Public Sans', sans-serif !important;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
}

body {
    margin: 0;
    background-color: #f3f4f6;
}

.app {
    display: flex;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed+.main-content {
    margin-left: 80px;
}

.page-content {
    padding: 24px;
    margin-top: 70px;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.side-nav {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    padding: 2rem 1rem;
    color: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: width var(--transition-speed) ease-in-out;
    z-index: 1000;
    overflow-x: hidden;
}

.side-nav.collapsed {
    width: var(--sidebar-collapsed-width);
}






.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-toggle {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle .toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-speed);
}

.side-nav.collapsed .nav-toggle .toggle-icon {
    transform: rotate(180deg);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    padding: 0 1rem;
    white-space: nowrap;
    transition: opacity var(--transition-speed);
}





.nav-links li {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-links li img {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nav-text {
    transition: opacity var(--transition-speed);
}

.side-nav.collapsed .nav-text {
    opacity: 0;
}

.nav-links li.active {
    background-color: var(--azure-500);
}

.nav-links li:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links li:focus {
    outline: 2px solid var(--white);
    ;
    outline-offset: -2px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-container.nav-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    ;
    z-index: 10;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.show-btn {
    padding: 0.5rem 2rem;
    background-color: var(--azure-500);
    color: var(--white);
    ;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.site-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-info p {
    color: #6b7280;
}

/* Fullscreen Map */
.fullscreen-map {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Floating Panels */
.floating-panel {
    position: absolute;
    background-color: var(--panel-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height) - 2rem);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.tree-panel {
    top: calc(var(--header-height) + 1rem);
    left: 1rem;
    width: 320px;
    position: absolute;
    left: 280px;
}

.bdm-panel {
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    width: 380px;
    height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--white-300);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: var(--slate-900);
    font-size: 16px;
    font-style: normal;
    /* font-weight: 500; */
    line-height: normal;
}

.panel-controls {
    display: flex;
    gap: 0.5rem;
}

.panel-controls button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.panel-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.panel-controls button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.panel-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* Minimized Panel */
.floating-panel.minimized {
    height: auto;
}

.floating-panel.minimized .panel-content {
    display: none;
}

/* Maximized Panel */
.floating-panel.maximized {
    width: 50% !important;
    height: calc(100vh - var(--header-height) - 2rem);
}

/* Tree Panel Content */
.tree-stats {
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--white);
    ;
    margin-bottom: 1rem;
}

.stat-card.primary {
    background-color: var(--emerald-500);
}

.stat-card img {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-info {
    background-color: var(--white);
    ;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--slate-gray);
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-color);
}

.tree-filter {
    background-color: var(--white);
    ;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tree-filter h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filter-form {
    display: grid;
    gap: 1rem;
}

.filter-group {
    display: grid;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: #6b7280;
}

.filter-group input {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.filter-btn {
    padding: 0.5rem;
    background-color: var(--azure-500);
    color: var(--white);
    ;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
}

.tree-list {
    background-color: var(--white);
    ;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tree-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tree-item:last-child {
    border-bottom: none;
}

.tree-item:hover {
    background-color: #f9fafb;
}

.tree-item h5 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.tree-item-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.tree-item-details span {
    display: flex;
    align-items: center;
}

.tree-item-details span strong {
    margin-right: 0.25rem;
    color: var(--text-color);
}

/* BDM Panel Content */
.search-container-tree {
    position: relative;
    margin-bottom: 1rem;
    top: -10px;
}

.data {
    color: var(--azure-500);
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 12px;
}

.search-container-tree input {
    width: 100%;
    border: 1px solid var(--box-border-color);
    border-radius: 0.375rem;
    padding: 0.4rem 0.75rem;
    padding-right: 3rem;
    font-size: 10.5px;
}

.search-container-tree button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--azure-500);
    color: var(--white);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0.2rem 0.75rem;
    font-size: 10.5px;
    right: 0.4rem;
}

.work-orders-list {
    display: grid;
    gap: 1rem;
}

.work-order-card {
    background-color: var(--white);
    padding: 1rem;
    /* 16px */
    border-radius: 0.375rem;
    /* 6px */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.work-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.work-order-id {
    background-color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 10.5px;
}

.Status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.Status-badge.open {
    background-color: var(--ruby-50);
    color: var(--ruby-400);
}

.Status-badge.progress {
    background-color: var(--azure-50);
    color: var(--azure-500);
}

.work-order-details {
    display: grid;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    align-items: center;
    font-size: 10.5px;
    /* 12px */
    line-height: 0.75rem;
}

.detail-label {
    color: #6b7280;
    min-width: 90px;
}


.status-badge-eco {
    display: inline-flex;
    align-items: center;
    background: var(--emerald-50);
    color: var(--emerald-500);
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--white);
    ;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 42rem;
    padding: 1.5rem;
    position: relative;
    overflow-y: auto;
    /* allows scrolling */
    max-height: 90vh;
    /* prevent from overflowing viewport */

    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}


.modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}



.modal-content {
    background-color: var(--white);
    ;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content-eco h2 {
    margin-bottom: 1.5rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-900);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-900);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--box-border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--azure-500);
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-actions button[type="submit"] {
    background-color: var(--azure-500);
    color: var(--white);
    ;
}

.form-actions button[type="submit"]:hover {
    background-color: var(--azure-600);
}

.form-actions button[type="button"] {
    background-color: var(--slate-100);
    color: var(--slate-700);
}

.form-actions button[type="button"]:hover {
    background-color: var(--slate-200);
    color: var(--slate-800);
}

/* Tree Marker Styles */
.tree-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}

.tree-marker.hidden {
    display: none;
}

.tree-popup {
    padding: 10px;
}

.tree-popup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-color);
}

.tree-popup p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.tree-popup strong {
    color: var(--text-color);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--azure-500);
    outline-offset: 2px;
}

/* High contrast focus indicators for dark backgrounds */
.side-nav button:focus-visible,
.nav-links li:focus-visible {
    outline-color: var(--white);
    ;
}

/* Responsive Design */
@media (max-width: 1280px) {

    .tree-panel,
    .bdm-panel {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .side-nav {
        width: var(--sidebar-collapsed-width);
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .nav-text,
    .logo {
        opacity: 0;
    }

    .header {
        padding: 1rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .show-btn {
        width: 100%;
    }

    .tree-panel,
    .bdm-panel {
        width: calc(50% - 1.5rem);
    }

    .tree-panel {
        left: 1rem;
    }

    .bdm-panel {
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0.75rem;
    }

    .tree-panel,
    .bdm-panel {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }

    .bdm-panel {
        top: calc(var(--header-height) + 50% + 0.5rem);
    }

    .tree-panel,
    .bdm-panel {
        max-height: calc((100vh - var(--header-height) - 3rem) / 2);
    }
}



.stats-grid {
    display: grid;
}

.stat-card {
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--white);
}

.stat-card.primary {
    background-color: var(--emerald-500);
}

.stat-card.secondary {
    background-color: var(--secondary-color);
}

.stat-card img {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-info {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-color);
}




@media (max-width: 1200px) {
    .SiteBarParentSection {
        width: 280px;
    }
}


.SiteBarParentSection {
    position: fixed;
    top: 70px;
    height: 90%;
    z-index: 1;
    padding: 10px;
    transition: width 0.3s ease, padding 0.3s ease, left 0.3s ease;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* When sidebar is expanded */
.SiteBarParentSection.expand {
    width: 280px;
    padding: 10px 6px;
}

/* When sidebar is collapsed */
.SiteBarParentSection.shrink {
    width: 280px;
    /* or whatever collapsed width you want */
    padding: 10px 6px;
    /* smaller padding if needed */
    left: 205px;
}



.main-content-nav {
    z-index: 1;
}



.resizable-div {
    position: relative;
    /* overflow: hidden; */
    /* resize: both; */
    min-width: 100%;
    /* min-height: 100%; */
}

.SiteBarSubSection {
    width: 100%;
    height: 100%;
    background-color: var(--white-300);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}


.SiteBarSubSection::-webkit-scrollbar {
    width: 6px;
    /* You can make this even smaller like 4px if you want */
}

.SiteBarSubSection::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly darker on hover for good UX */
}

.SiteBarSubSection::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    /* Scrollbar thumb color */
    border-radius: 3px;
    /* Rounded edges for a sleek look */
}


@media (max-width: 1200px) {
    .SiteSelectionSelect {
        font-size: 12px;
        width: 180px;
    }
}

.SiteSelectionSelect {
    width: 200px;
    height: 30px;
    color: var(--slade-900);
    font-size: 11px;
    font-weight: 400;
    border: none;
    background-color: var(--white);
    border-radius: 4px;
    outline-color: var(--azure-500);
}



@media(max-width: 1200px) {
    .ShowBtnStyle {
        font-size: 12px;
    }
}

.ShowBtnStyle {
    width: 70px;
    height: 30px;
    line-height: 1 !important;
    border-radius: 8px !important;
    background: var(--azure-500);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 500;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative !important;
    top: 2px !important;
}

.SiteSelectionDiv {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.SiteSelectionDiv-siterun {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -19px;
    margin-bottom: 14px;
    margin-left: 0px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.SiteSelectionSelectDiv {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .SiteSelectionSelect {
        font-size: 12px;
        width: 180px;
    }
}

.SiteSelectionSelect {
    width: 100%;
    height: 24px;
    color: var(--slade-900);
    font-size: 10.5px;
    font-weight: 400;
    border: 1px solid var(--box-border-color);
    background-color: var(--white);
    border-radius: 4px;
    outline-color: var(--azure-500);
    cursor: pointer;
    z-index: 10;
}

.SiteCodeDiv {
    font-size: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

option {
    font-weight: normal;
    display: block;
    padding-block-start: 0px;
    padding-block-end: 1px;
    min-block-size: 1.2em;
    padding-inline: 2px;
    white-space: nowrap;
}

.SiteSelectionDiv {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .SiteLabelText {
        font-size: 14px;
    }
}

.SiteLabelText {
    color: var(--slate-900);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.TreeDetailsParent {
    background-color: var(--white);
    padding: 6px 10px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* spacing between sections */
}

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

@media (max-width: 1200px) {
    .TreesText {
        font-size: 14px;
    }
}

.TreesText {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-900);
    text-decoration: underline;
    text-decoration-color: var(--emerald-500);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

@media (max-width: 1200px) {
    .DataHeadingDiv {
        display: none;
    }
}

.DataHeadingDiv {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.DataText {
    font-size: 14px;
    font-weight: 600;
    color: var(--azure-500);
    margin-top: 2px;
}

.TotalTreesHeadDiv {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-top: 12px;
}

.TotalTreeDiv1 {
    width: 50%;
    height: 60px;
    border-radius: 10px;
    background: var(--emerald-500);
    display: flex;
    gap: 8px;
    padding: 0 4px;
}

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

.TotalTreeDiv1LogoDetail {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

@media (max-width: 1200px) {
    .TotalTreesText {
        font-size: 12px;
    }
}

.TotalTreesText {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .TotalTreesCount {
        font-size: 20px;
    }
}


.TotalTreesCount {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.4px !important;
}

.TotalTreeDiv2 {
    width: 50%;
    height: 75px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 1200px) {
    .CanopyTxt {
        font-size: 12px;
    }
}

.CanopyTxt {
    color: var(--slate-gray-50);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .CanopyPercentage {
        font-size: 20px;
    }
}


.CanopyPercentage {
    color: #f3f4f6;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.4px !important;
}

.TreesHealthParent {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 100%;
    height: auto;
    margin-top: 4px;
}

.TreeHealthDetailDiv {
    width: 50%;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0px;
}

.TreeHealthBox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 10px;
    padding: 16px;
    border: 2px solid #ddd;
    /* Light gray border */
    border-radius: 12px;
    background-color: #f9f9f9;
    /* Slightly off-white background */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .AvgText {
        font-size: 12px;
    }
}

.AvgText {
    color: var(--slate-gray-50);
    font-size: 14px;
    font-weight: 500;
}

.AvgLogoParent {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

element.style {
    width: 26px;
    height: 26px;
}

.TreeDetailsParent {
    background-color: var(--white);
    padding: 6px 10px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: -12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* spacing between sections */
}



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


@media (max-width: 1200px) {
    .WaterText {
        font-size: 14px;
    }
}

.WaterText {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-900);
    text-decoration: underline;
    text-decoration-color: var(--azure-500);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    position: relative;
    top: 28px;
}

.TotalTreesHeadDiv {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-top: 5px;
}

.TotalWaterDiv1 {
    width: 50%;
    height: 60px;
    border-radius: 10px;
    background: var(--azure-500);
    display: flex;
    gap: 4px;
    padding: 0 4px;
}

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

svg {
    vertical-align: middle;
}

.TotalTreeDiv1LogoDetail {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

@media (max-width: 1200px) {
    .TotalTreesText {
        font-size: 12px;
    }
}

.TotalTreesText {
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .TotalTreesCount {
        font-size: 20px;
    }
}

.TotalTreesCount {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.4px !important;
}

.TotalTreeDiv2 {
    width: 50%;
    height: 75px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 1200px) {
    .CanopyTxt {
        font-size: 12px;
    }
}

.CanopyTxt {
    color: var(--slate-gray-50);
    font-size: 10px;
    font-weight: 500;
}

.CanopyPercentageDiv {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

element.style {
    width: 22px;
    height: 22px;
}

@media (max-width: 1200px) {
    .CanopyPercentage {
        font-size: 20px;
    }
}

.CanopyPercentage {
    color: var(--slate-900);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px !important;
}

.TreesHealthParent {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 100%;
    height: auto;
    margin-top: -29px;
}


@media (max-width: 1200px) {
    .AvgText {
        font-size: 12px;
    }
}


.AvgText {
    color: var(--slate-gray-50);
    font-size: 10px;
    font-weight: 500;
}

.AvgLogoParent {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1200px) {
    .AvgDataCountText {
        font-size: 14px;
    }
}


.AvgDataCountText {
    color: var(--slate-900);
    font-size: 11px;
    font-weight: 600;
}


/*==============================*/


element.style {
    right: 0px;
}

@media (max-width: 1200px) {
    .WorkOrdBarParentSection {
        width: 280px;
    }
}

.WorkOrdBarParentSection {
    width: 280px;
    height: 90%;
    position: fixed;
    padding: 10px;
    top: 70px;
    z-index: 1;
}


.WorkOrdBarSubSection {
    width: 100%;
    height: 100%;
    background-color: var(--white-300);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.WOheadingParent {
    width: 100%;
    height: 48px;
    border-bottom: 1px solid #DDD;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .WOheadingText {
        font-size: 14px;
    }
}

.activeTab {
    color: var(--slate-900);
    border-bottom: 2px solid var(--azure-500);
}

.WOheadingText {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6C737F;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .WOheadingText {
        font-size: 14px;
    }
}

.WOheadingText {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6C737F;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.WoDetailsParentDiv {
    width: 100%;
    height: calc(100% - 48px);
}

.SearchInputSection {
    width: 100%;
    height: 60px;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1200px) {
    .WoSearchinput {
        height: 32px;
    }
}

.WoSearchinput {
    width: 80%;
    height: 36px;
    border: 1px solid #DDD;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    outline: none;
}

@media (max-width: 1200px) {
    .AddBtnStyle {
        height: 30px;
    }
}

.AddBtnStyle {
    width: 70px;
    height: 32px;
    border-radius: 6px;
    background: var(--azure-500);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.6px !important;
    border: none;
    outline: none;
    cursor: pointer;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.WoDetailsCardViewParent {
    padding: 0px 10px 10px 10px;
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
}

element.style {
    width: 100%;
    height: 100%;
}

.fullscreen-map {
    font: 12px / 20px Helvetica Neue, Arial, Helvetica, sans-serif;
    overflow: hidden;
    position: relative;
    -webkit-tap-highlight-color: rgb(0 0 0 / 0);
}


element.style {
    visibility: hidden;
}

.mapboxgl-canary {
    background-color: #59332e;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.map-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Modal styles */
.modal {
    /* Hide by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal.active {
    display: flex;
    opacity: 1;
    /* Show when active */
}




.nav-section-title {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #bbb;
    /* Adjust color as needed */
    text-transform: uppercase;
}

.side-nav {
    height: 100vh;
    /* Full viewport height */
    overflow-y: auto;
    /* Enables vertical scrolling */
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #888 #222;
    /* Scrollbar styling */
    z-index: 1000;
    /* Example value, adjust as necessary */
    position: relative;
    /* Ensure it is positioned correctly */
}

/* Optional: For WebKit-based browsers (Chrome, Edge, Safari) */
.side-nav::-webkit-scrollbar {
    width: 6px;
}

.side-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.side-nav::-webkit-scrollbar-track {
    background: #222;
}


.main-content-nav.expand {
    flex-grow: 1;
}

.main-content-nav {
    transition: flex-grow 0.3s;
}

.main-content-nav {
    z-index: 1;
}


.nav-collapsed .main-content {
    margin-left: 60px !important;
}

.collapsed-logo {
    width: 100px !important;
    height: 100px !important;
    margin-left: -25px;
    margin-top: 25px;
    transition: all 0.3s ease;
}



.side-nav {
    width: 250px;
    background-color: #1a202c;
    color: var(--white);
    padding: 10px;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    padding: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
}

.has-submenu {
    position: relative;
}

.submenu-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu-toggle .arrow {
    margin-left: auto;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #2d3748;
    border-radius: 5px;
    overflow: hidden;
}

.submenu li {
    padding: 10px;
}

.submenu a {
    display: block;
    padding: 8px 15px;
    color: #cbd5e0;
}

.submenu a:hover {
    background-color: #4a5568;
    color: var(--white);
}


.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--white);
    padding: 6px 10px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    display: flex;
    position: relative;
    top: -7px;
}

.filter-btn1 {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn1.all {
    background-color: var(--slate-100);
    /* soft gray background */
    color: var(--slate-900);
    /* slate gray text */
}

.filter-btn1.all.active {
    background-color: var(--slate-800);
    /* darker slate when active */
    color: var(--white);
}

.filter-btn1.risk {
    background-color: var(--ruby-100);
    color: var(--slate-900);
}

.filter-btn1.risk.active {
    background-color: var(--ruby-400);
    color: var(--white);
}

.filter-btn1.average {
    background-color: var(--citrine-100);
    color: var(--slate-900);
}

.filter-btn1.average.active {
    background-color: var(--citrine-500);
    color: var(--white);
}

.filter-btn1.good {
    background-color: var(--emerald-100);
    color: var(--slate-900);
}

.filter-btn1.good.active {
    background-color: var(--emerald-500);
    color: var(--white);
}

/* Modal Container */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dim background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-height: 90vh;
    /* Limit height */
    overflow-y: auto;
    /* Enable vertical scroll */
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Optional: Prevent body from scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}


.description {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}



.show-all-btn {
    width: 68px;
    height: 24px;
    border-radius: 6px;
    background: var(--azure-500);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.4px !important;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    left: 18px;
}



.CanopyTxt2 {
    color: var(--slate-900);
    font-size: 10px;
    font-weight: 500;
}



/* Left Panel */
.SiteBarParentSection.minimized {
    width: 270px;
    height: 70px;
    padding: 10px 5px;
}

.SiteBarParentSection.minimized .SiteSelectionDiv:not(:first-child),
.SiteBarParentSection.minimized .TreeDetailsParent1,
.SiteBarParentSection.minimized .SiteSelectionSelectDiv {
    display: none;
}

/* Right Panel */
.WorkOrdBarParentSection.minimized {
    width: 270px;
    height: 70px;
}

.WorkOrdBarParentSection.minimized .status-filters,
.WorkOrdBarParentSection.minimized .panel-content,
.WorkOrdBarParentSection.minimized .AddBtnStyle,
.WorkOrdBarParentSection.minimized .tree-list {
    display: none;
}



.create-task-btn {
    width: 100px !important;
    height: 28px !important;
    border-radius: 6px;
    background: var(--slate-600);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.4px !important;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    left: 0px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px 32px;
    width: 480px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.cancel-button-task,
.create-button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-button-task {
    background: #f0f0f0;
}

.create-button {
    background: #0a58ca;
    color: white;
}




.modal-content-eco {
    background-color: var(--white);
    border-radius: .5rem;
    max-width: 600px;
    padding: 1rem;
    position: relative;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}