
:root{
    --main-color: #0D665C;
    --gray-color: #E5E9F2;
    --gray-mid: #a0a0a0; 
}


.bg-main{background-color: var(--main-color);}
.bg-gray{background-color: var(--gray-color);}
.bg-gray-mid{background-color: var(--gray-mid);}

.color-main{color: var(--main-color);}
.color-gray{color: var(--gray-color);}
.color-gray-mid{color: var(--gray-mid);}


.btn-primary {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0b5249; /* darker shade of --main-color */
    border-color: #0b5249;
    color: #fff;
}



.text-primary{
    color: var(--main-color) !important;
}


.slider-form{
    width: 0%;
    position: fixed;
    right: 0px;
    top: 0px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -14px 0px 15px -3px rgba(0,0,0,0.1);
    padding: 40px;
    display: none;
    z-index: 1000;
}

.slider-form.open {
    right: 0;
    width: 40%;
    display: block;
}

.close-slider {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-slider:hover {
    background-color: rgba(0,0,0,0.1);
}



.sc-bar {
  --sb-track-color: #d4dee2;
  --sb-thumb-color: #1b4d3e;
  --sb-size: 7px;
}

.sc-bar::-webkit-scrollbar {
  width: var(--sb-size)
}

.sc-bar::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

.sc-bar::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
  
}

@supports not selector(::-webkit-scrollbar) {
  .sc-bar {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}



#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#layout {
    display: flex;
    height: calc(100vh - 60px); /* navbar height */
    margin-top: 60px;
    overflow: hidden;
}

#content {
    flex: 1;
    overflow-y: hidden; /* initially disabled for loading */
    position: relative; /* required for overlay positioning */
}

/* Content loading overlay */
#content-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* above content but below header/sidebar */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* Navbar */
.navbar-custom {
    background-color: #1b4d3e;
    color: white;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white;
}

/* Sidebar */
#sidebar {
    width: 380px;
    color: #1b4d3e;
    background: white;
    min-height: 100vh;
    transition: width 0.3s;
    overflow: hidden;
    border-right: 1px solid #D3D3D3;
}

#sidebar.collapsed {
    width: 70px;
}

#sidebar a {
    color: #1b4d3e;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 10px 15px;
    transition: all 0.3s;
    position: relative;
    border-bottom: 1px solid #eee;
}

#sidebar a .icon {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 18px;
}

#sidebar.collapsed a .text {
    display: none;
}

#sidebar.collapsed a .bi-chevron-down {
    display: none; 
}

#sidebar .nav-link:hover {
    background: #f9f9f9;
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 30px;
    background: #f9f9f9;
}

.submenu.show {
    display: flex;
}

#main-content {
    min-height: 100vh;
}

#sidebar.collapsed .submenu {
    display: none !important;
}

.breadcrumb-wrapper {
    width: auto;
    margin: 0; 
    padding: 0; 
}

.custom-breadcrumb {
    background-color: #d9e2d5;
    padding: 8px 20px; 
    margin: 0; 
    border-radius: 0;
    font-size: 1rem;
    width: 100%;
}
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #6b6b6b;
}



.table-flexible {
    width: 100%;             /* Full width by default, changeable */
    border-collapse: collapse; /* Remove double borders */
    text-align: left;        /* Default alignment */
    font-family: Arial, sans-serif; /* Default font */
    font-size: 14px;         /* Adjustable font size */
    color: #333;             /* Text color */
    background-color: #fff;  /* Table background */
}

.table-flexible th,
.table-flexible td {
    border: 1px solid #ccc;  /* Cell borders */
    padding: 8px 12px;       /* Cell padding */
}

.table-flexible th {
    background-color: #dfdfdf; /* Header background */
    font-weight: bold;          /* Header bold */
}

.table-flexible tr:nth-child(even) {
    background-color: #fafafa; /* Alternate row color */
}

/* Optional: hover effect */
.table-flexible tr:hover {
    background-color: #d3d3d3;
}


.mapboxgl-ctrl-group button {
    font-size: 12px;
    line-height: 20px;
    width: 28px;
    height: 28px;
}