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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px 0;
    padding-top: 0px;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-modal.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

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

.loading-title {
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.loading-text {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.square {
    width: 1200px;
    background-color: #f2f2f2;
    border-radius: 80px;
    display: flex;
    justify-content: space-between;
    align-self: center;
    flex-direction: column;
    padding: 16px 64px;
    position: relative;
}

@font-face {
    font-family: 'Agency FB Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Agency FB Bold'), url('fonts/AGENCYB.woff') format('woff');
}

.body {
    font-family: "Agency FB Bold", sans-serif;
}

.font-agency {
    font-family: "Agency FB Bold", sans-serif;
}

.font-open-sans {
    font-family: "Open Sans", sans-serif;
}

.green-text {
    color: #739D6D;
}

.white-text {
    color: #FFFFFF;
}

.small {
    font-size: 24px;
}

.large {
    font-size: 44px;
}

.text-shadow {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.absolute {
    position: absolute;
}

/* Language dropdown styles */
.dropdown-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

.language-dropdown {
    font-family: "Agency FB Bold", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #739D6D;
    background-color: white;
    border: 2px solid #739D6D;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    outline: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-dropdown:hover {
    background-color: #f8f9fa;
    border-color: #5a7c54;
}

.language-dropdown:focus {
    border-color: #5a7c54;
    box-shadow: 0 0 0 3px rgba(115, 157, 109, 0.2);
}

/* Hover tooltip styles */
.metric-rectangle {
    position: absolute;
}


/* .metric-rectangle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
} */

.ranking-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 350px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ranking-tooltip.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

.ranking-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.tooltip-content {
    padding: 20px;
    color: white;
}

.tooltip-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-position {
    font-size: 18px;
    font-weight: bold;
    min-width: 35px;
}

.ranking-state {
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.ranking-value {
    font-size: 16px;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

/* Color variations for different metrics */
.ranking-tooltip.rl-excedente {
    background-color: rgba(115, 157, 109, 0.95);
}

.ranking-tooltip.rl-deficit {
    background-color: rgba(233, 140, 128, 0.95);
}

.ranking-tooltip.app-deficit {
    background-color: rgba(126, 126, 126, 0.95);
}

.ranking-tooltip.desmatamento {
    background-color: rgba(230, 164, 122, 0.95);
}

.ranking-tooltip.car-desconformidade {
    background-color: rgba(230, 164, 122, 0.95);
}

/* Geographic Filters Styles - Repositioned for iframe */
.geographic-filters {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    z-index: 10;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: bold;
    color: #4a5568;
    margin: 0;
}

.area-dropdown,
.subarea-dropdown {
    font-family: "Agency FB Bold", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #739D6D;
    background-color: white;
    border: 2px solid #739D6D;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
    height: 45px;
}

.area-dropdown:hover,
.subarea-dropdown:hover {
    background-color: #f8f9fa;
    border-color: #5a7c54;
}

.area-dropdown:focus,
.subarea-dropdown:focus {
    border-color: #5a7c54;
    box-shadow: 0 0 0 3px rgba(115, 157, 109, 0.2);
}

/* Data Table Section Styles */
.data-table-section {
    width: 1200px;
    background-color: #f2f2f2;
    border-radius: 80px;
    padding: 40px;
    margin-top: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.table-title {
    font-size: 32px;
    color: #739D6D;
    font-weight: bold;
    margin: 0;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #739D6D;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(115, 157, 109, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 157, 109, 0.4);
}

.download-button:active {
    transform: translateY(0);
}

.table-container {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

/* Custom scrollbar styles for table */
.table-container::-webkit-scrollbar {
    width: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 0 20px 20px 0;
}

.table-container::-webkit-scrollbar-thumb {
    background: #739D6D;
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #5a7c54;
}

/* Firefox scrollbar */
.table-container {
    scrollbar-width: thin;
    scrollbar-color: #739D6D #f8f9fa;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    background-color: #739D6D;
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-table th:hover {
    background-color: #5a7c54;
}

.data-table th.sortable::after {
    content: ' ↕';
    position: absolute;
    right: 8px;
    opacity: 0.6;
}

.data-table th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

.data-table th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.data-table tr:hover td {
    background-color: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td:first-child {
    font-weight: bold;
    color: #739D6D;
}

.data-table td:not(:first-child) {
    text-align: center;
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

/* Custom scrollbar styles for modal */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 0 20px 20px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #739D6D;
    border-radius: 6px;
    border: 2px solid #f8f9fa;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #5a7c54;
}

/* Firefox scrollbar for modal */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #739D6D #f8f9fa;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e0e0e0;
    background-color: #739D6D;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 32px;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-title {
    color: #739D6D;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    border-bottom: 2px solid #739D6D;
    padding-bottom: 8px;
}

.legal-text {
    color: #666;
    font-size: 14px;
    text-align: justify;
    margin-bottom: 16px;
    line-height: 1.7;
    font-weight: 300;
}

.citation-example {
    background-color: #f8f9fa;
    border-left: 4px solid #739D6D;
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #333;
}

.citation-example strong {
    color: #739D6D;
}

.legal-text a {
    color: #739D6D;
    text-decoration: none;
    font-weight: bold;
}

.legal-text a:hover {
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px 32px;
    border-top: 2px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-button {
    background-color: #e0e0e0;
    color: #666;
}

.cancel-button:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}

.confirm-button {
    background-color: #739D6D;
    color: white;
    box-shadow: 0 4px 15px rgba(115, 157, 109, 0.3);
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 157, 109, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1240px) {
    .square {
        width: 100%;
        margin: 0px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .dropdown-container {
        position: static;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    
    .geographic-filters {
        position: static;
        margin-bottom: 20px;
        align-items: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .table-title {
        text-align: center;
        font-size: 24px;
    }
    
    .download-button {
        align-self: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* Biomes Dashboard Styles */
.biome-title {
    font-size: 44px;
    color: #818181;
    text-align: center;
    font-weight: bold;
}

.biome-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin-top: 12px;
    gap: 44px;
}

.biome-element {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

/* Circle with dot positioned above and to the left of biome image */
.connection-circle {
    position: absolute;
    top: 200px;
    left: 300px;
    width: 20px;
    height: 20px;
    border: 2px solid #f2f2f2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.connection-dot {
    width: 6px;
    height: 6px;
    background-color: #f2f2f2;
    border-radius: 50%;
}

/* Diagonal line connecting circle to first stats square */
.connection-line {
    position: absolute;
    top: 210px;
    left: 310px;
    width: 333px;
    height: 2px;
    background-color: #bdbdbd;
    transform-origin: left;
    transform: rotate(-20deg);
    z-index: 3;
}

.biome-image {
    width: auto;
    height: 418px;
    max-width: 600px;
    z-index: 2;
}

.biome-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-right: 70px;
}

.dashed-circle {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px dashed #818181;
    box-sizing: border-box;
    z-index: 1;
    margin-bottom: 30px;
}

.stats-square {
    font-size: 36px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fefefe;
    text-align: center;
    font-weight: 500;
    background-color: #bdbdbd;
    border-radius: 20px;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
}

.environmental-balance {
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 3px dashed #65A55D;
    border-radius: 50px;
    gap: 4px;
    height: 100%;
    margin-top: 24px;
}

.environmental-balance-title {
    color: #4A6A45;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
}

.eb-squares-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 10px;
}

.eb-square {
    background-color: #d4ddd3;
    border-radius: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 310px;
    height: 310px;
    padding: 8px;
    padding-top: 30px;
    position: relative;
}

/* Circular badges for RL and APP */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background-color: #65A55D;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.eb-square-text {
    font-size: 32px;
    color: #719C6B;
    text-align: center;
    font-weight: 500;
    margin-top: 12px;
    width: fit-content;
}

/* Regions Dashboard Styles - Complete from original regions CSS */
#regions-dashboard {
    position: relative;
    width: 1200px;
    height: 900px;
    background-color: #f2f2f2;
    border-radius: 80px;
    padding: 16px 64px;
    align-self: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 20px;
    overflow: hidden;
}

#regions-dashboard .region-image-container {
    position: absolute;
    top: 295px;
    left: 185px;
    height: 280px;
    width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#regions-dashboard #region-image {
    height: 100%;
}

#regions-dashboard #title {
    position: absolute;
    left: calc(50% - 180px);
    font-weight: 700;
    color: #7F7F7F;
    font-size: 36px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    width: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Open Sans", sans-serif;
    top: 20px;
}

#regions-dashboard .data-box-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    width: 280px;
    position: absolute;
}

#regions-dashboard .data-box-title {
    color: #739C6D;
    font-size: 42px;
    font-family: "Agency FB Bold", sans-serif;
}

#regions-dashboard .data-box-value-container {
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

#regions-dashboard .data-box-value {
    font-size: 56px;
    font-family: "Agency FB Bold", sans-serif;
    width: fit-content;
}

#regions-dashboard .data-box-unit {
    font-size: 36px;
    font-family: "Agency FB Bold", sans-serif;
}

#regions-dashboard .percentage-value {
    font-size: 56px;
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    font-family: "Agency FB Bold", sans-serif;
}

#regions-dashboard .percentage-description {
    font-size: 32px;
    color: #739C6D;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.0);
    margin-left: 8px;
    font-family: "Agency FB Bold", sans-serif;
}

#regions-dashboard .green-font {
    color: #739C6D;
}

/* ============================================
   STATES DASHBOARD STYLES
   ============================================ */

/* States dashboard main container */
#states-dashboard {
    display: none;
    width: 1200px;
    height: auto;
    /* min-height: 900px;
    max-height: 900px; */
    background-color: #f2f2f2;
    border-radius: 80px;
    flex-direction: column;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

#states-dashboard .title {
    font-size: 44px;
    color: #818181;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Main content layout */
#states-dashboard .main-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 24px;
    flex: 0 1 auto;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

#states-dashboard .left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 50%;
    max-width: 50%;
}

#states-dashboard .right-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 50%;
    max-width: 50%;
}

/* State map section */
#states-dashboard .state-map-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 450px;
    margin-top: -60px;
    z-index: 10;
}

#states-dashboard .state-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 550px;
    height: 550px;
    overflow: visible;
}

#states-dashboard .state-map {
    width: 450px;
    height: 480px;
    object-fit: contain;
    filter: drop-shadow(-3px 4px 4px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
}

#states-dashboard .map-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 11;
    max-width: 400px;
}

#states-dashboard .car-registrations {
    font-size: 38px;
}

#states-dashboard .car-registrations span {
    font-size: 52px;
}

#states-dashboard .arrow-connector {
    margin: 20px 0;
}

#states-dashboard .connector-arrow {
    width: 60px;
    height: 60px;
    transform: rotate(90deg);
}

/* State box line */
#states-dashboard .state-box-line {
    border-top: 2px solid #7e7e7e;
    border-left: 2px solid #7e7e7e;
    border-bottom: 2px solid #7e7e7e;
    border-right: none;
    height: 315px;
    width: 70px;
    position: absolute;
    top: 155px;
    left: 5px;
}

/* Territory stats */
#states-dashboard .territory-stats {
    background-color: #bebebe;
    color: white;
    padding: 16px;
    text-align: center;
    min-width: 250px;
    border: 3px solid #7e7e7e;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
    margin-top: -30px;
    width: 85%;
    margin-left: 60px;
    position: relative;
    z-index: 99;
}

#states-dashboard .territory-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
}

#states-dashboard .area-number {
    display: block;
    font-weight: bold;
    font-size: 36px;
    width: 100%;
}

#states-dashboard .territory-percent {
    display: block;
    font-size: 40px;
    font-weight: 700;
}

#states-dashboard .territory-percent-label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    text-align: justify;
}

#states-dashboard .territory-box-divisor {
    position: absolute;
    top: -5px;
    left: 155px;
    width: 64px;
    height: 64px;
}

#states-dashboard .divisor-line-1 {
    position: absolute;
    top: 30px;
    left: 70px;
    width: 50px;
    height: 3px;
    background-color: #7e7e7e;
    transform-origin: left center;
    transform: rotate(-115deg);
}

#states-dashboard .divisor-line-2 {
    position: absolute;
    top: 28px;
    left: 70px;
    width: 50px;
    height: 3px;
    background-color: #7e7e7e;
    transform-origin: left center;
    transform: rotate(115deg);
}

#states-dashboard .car-registros {
    font-size: 16px;
    margin-bottom: 5px;
}

#states-dashboard .registros-number {
    font-size: 40px;
    font-weight: bold;
}

/* Chart section */
#states-dashboard .chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

#states-dashboard .circle-chart {
    position: relative;
}

/* Donut chart */
#states-dashboard .donut-chart {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: conic-gradient(
        #E6A47A 0deg 225.8deg,
        white 225.8deg 227.8deg,
        #7FB069 227.8deg 348.2deg,
        white 348.2deg 350.2deg,
        #87CEEB 350.2deg 360deg
    );
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    border: 4px solid white;
}

#states-dashboard .donut-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    background: #f2f2f2;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    border: 4px solid white;
}

#states-dashboard .chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

#states-dashboard .graph-center-text {
    display: block;
    font-size: 58px;
    font-weight: 500;
    line-height: 1.2;
    color: #ACACAC;
}

/* Percentage labels around chart */
#states-dashboard .percentage-label {
    position: absolute;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    width: 100px;
}

#states-dashboard .percentage-label.top-right {
    top: -85px;
    left: 110px;
    color: #87CEEB;
}

#states-dashboard .percentage-label.right {
    right: 10px;
    top: -29px;
    transform: translateY(-50%);
    color: #E6A47A;
}

#states-dashboard .percentage-label.left {
    left: -94px;
    top: 40px;
    transform: translateY(-50%);
    color: #7FB069;
    text-align: right;
}

#states-dashboard .percent-number {
    display: block;
    font-size: 42px;
    font-weight: bold;
}

#states-dashboard .percent-label {
    display: block;
    font-size: 16px;
    margin-top: 4px;
    line-height: 1.2;
}

/* Bottom section */
#states-dashboard .bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0px;
    gap: 40px;
    height: auto;
    max-width: 100%;
}

/* Environmental balance section */
#states-dashboard .environmental-balance-section {
    flex: 0 1 60%;
    border: 2px dashed #7FB069;
    border-radius: 60px;
    padding: 8px 24px;
    height: fit-content;
    
}

#states-dashboard .balance-title {
    font-size: 28px;
    color: #7FB069;
    text-align: center;
    margin-bottom: 14px;
    font-weight: bold;
}

#states-dashboard .balance-items {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 0px;
}

#states-dashboard .balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 8px;
}

#states-dashboard .balance-img {
    height: 90px;
    width: auto;
}

#states-dashboard .balance-text {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#states-dashboard .balance-label {
    font-size: 22px;
    font-weight: 700;
    color: #ACACAC;
    margin-bottom: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
}

#states-dashboard .balance-value {
    font-size: 32px;;
    font-weight: bold;
    line-height: 1.2;
    width: max-content;
}

#states-dashboard .green-text {
    color: #7FB069;
}

#states-dashboard .red-text {
    color: #E98C80;
}

#states-dashboard .gray-text {
    color: #7E7E7E;
}

#states-dashboard .orange-text {
    color: #E6A47A;
}

#states-dashboard .balance-unit {
    font-size: 14px;
}

#states-dashboard .balance-note {
    font-size: 15px;
    text-align: center;
    margin-top: -8px;
    margin-left: 28px;
    line-height: 1.4;
    text-align: inherit;
}

/* Deforestation section */
#states-dashboard .deforestation-section {
    flex: 0 1 40%;
    max-width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

#states-dashboard .deforestation-title {
    font-size: 30px;
    color: #E98C80;
    font-weight: bold;
    border: 2px dashed #E98C80;
    border-radius: 15px;
    text-align: center;
    line-height: 1.3;
    padding: 8px;
}

#states-dashboard .deforestation-value {
    font-size: 34px;
    font-weight: bold;
}

#states-dashboard .deforestation-chart {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

#states-dashboard .chainsaw-icon {
    font-size: 32px;
}

#states-dashboard .chainsaw-bar {
    position: absolute;
    top: 75px;
    left: 143px;
    width: 155px;
    height: 36px;
    background-color: #E29992;
    border-radius: 0 20px 20px 0;
}

#states-dashboard .deforestation-bar {
    flex: 1;
    height: 40px;
    background-color: #DDD;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

#states-dashboard .deforestation-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8%;
    height: 100%;
    background-color: #FFB3B3;
    border-radius: 20px;
}

#states-dashboard .illegal-portion {
    font-size: 18px;
    font-weight: bold;
    color: #FF6B6B;
    z-index: 1;
}

#states-dashboard .illegal-label {
    font-size: 14px;
    color: #666;
    margin-left: auto;
}