@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

html, body { height: 100%; margin: 0; }
#map { height: 100%; }
.svg-o{ height: 30px; width: 30px;}
.svg-t{ height: 20px; width: 20px; }
.container-svg{ display: flex; align-items: center; }
.container-svg svg { margin-right: 8px; }
.right-panel {
    position: fixed;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 15%!important;
    height: 22%!important;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    pointer-events: auto; 
    text-align: center; 
}

.right-panel h2 {
    margin-bottom: 5px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 28px;
}

#totalPlantas {
    font-size: 90px;
    color: #174ea6;
    font-weight: bold;
    margin-top: 5px;
}

.left-panel {
    position: fixed;
    left: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 25%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000; 
    pointer-events: auto;
}

.left-panel button {
    flex: 1; 
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.button-container {
    display: flex; 
    justify-content: space-between;
    gap: 10px; 
}

.left-panel button:first-child {
    display: flex;
    align-items: center;
    padding: 8px 60px;
    background: #C72222;
    color: white;
}

.left-panel button:last-child { background: #174ea6; color: white; }
hr { margin: 15px 0; border: 0; height: 1px; background: #ccc; }

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.toggle-label {
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 14px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    border-radius: 10px;
    transition: background-color 0.3s, box-shadow 0.2s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: -3px;
    bottom: -3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.2s;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider { background-color: #174ea6; }
input:checked + .slider:before { transform: translateX(28px); background-color: #fff; }
.toggle-switch:hover .slider { box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); }
.toggle-switch:hover .slider:before { box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4); }
#bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 32%; 
    background-color: rgba(255, 255, 255, 1); 
    z-index: 1000; 
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden; 
}

.table-wrapper { width: 100%; max-height: 100%; overflow-y: hidden; }
.tbody-container { overflow-y: auto; max-height: 300px; }

.material-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}


.material-table th, .material-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.material-table th {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ccc; 
    color: white;
    font-weight: 600;
    position: sticky;  
    top: 0;            
    z-index: 1;        
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.material-table thead { position: sticky; top: 0; background-color: #ccc; }

.material-table th div input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.material-table tbody tr:nth-child(even) { background-color: #f9f9f9; }
.material-table tbody tr:hover { background-color: #f1f1f1; }
.material-table td { border-top: 1px solid #ddd; }
.material-table tbody td {font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.material-table { display: block; }
.material-table thead {
    position: sticky;
    top: 0;
    background-color: #ccc;
    display: table;
    width: 100%;
}

.material-table tbody { display: block; overflow-y: auto; max-height: 300px; }
input[type="text"] {
    font-size: 14px;
    font-family: "Roboto", sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    margin: 5px 0;
    background-color: #fafafa;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.3s ease;
}

input[type="text"]:focus { border-color: #C72222; outline: none; }
.material-table th:first-child, .material-table td:first-child { width: 10%; }
.material-table th:nth-child(2), .material-table td:nth-child(2) { width: 25%; }
.material-table th:nth-child(3), .material-table td:nth-child(3) { width: 10%; }
.material-table th:nth-child(4), .material-table td:nth-child(4) { width: 15%; }
.material-table th:nth-child(5), .material-table td:nth-child(5) { width: 15%; }
.material-table th:nth-child(6), .material-table td:nth-child(6) { width: 10%; }
.material-table th:nth-child(7), .material-table td:nth-child(7) { width: 10%; }
.material-table th, .material-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    box-sizing: border-box;
}

.material-table th div input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.right-panel {
    position: fixed;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    width: 25%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}