body {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-areas: "sidebar-left main";
    height: 100vh;
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    background-color: #C5C5C6;
    transition: grid-template-columns 0.5s ease-out;
}

.main-container {
    grid-area: main;
    position: flex;
    justify-content: space-around;
    align-items: start;
    height: 100%;
    margin-left: 50px;
    transition: margin-left 0.5s ease-out;
}

.sidebar-left {
    grid-area: sidebar-left;
    background: #212121;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.5s ease-out;
    position: absolute;
    width: 400px;
}

.sidebar-left.hide {
    transform: translateX(-100%)
}

.sidebar-left
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

 .sidebar-header h1 {
    margin-right: 20px;
  }

 .sidebar-logo {
    width: auto;
    height: 50px;
  }

.sidebar-header-right {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.sidebar-logo {
    margin-right: 20px;
	width:50px;
	position: relative;
}

#toggleSidebar {
    position: fixed;
    top: 50%;
    left: 400px;
    transform: translateY(-50%);
    width: 25px;
    height: 70px;
    background-color: #4CAF50;
    color: #C5C5C6;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    border: none;
}

#toggleSidebar:hover {
    background-color: #388E3C;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#toggleSidebar:active {
    transform: translateY(2px);
}

.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1002;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.sidebar-header-right {
    display:relative;
    width: 100%;
}

.sidebar-logo-right{
    margin-right: 20px;
	width:50px;
	position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    color: #C5C5C6;
}

h1 {
    margin-left: 0px;
    font-size: xx-large;
}

 .divider-bar {
    height: 2px;
    background-color: #ccc;
    margin: 0px 10px;
    width: 30%;
  }

  .create-project-btn {
    background-color: #212121;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-top: 15px;
    display: flex;
    align-items: left;
    justify-content: left;
    color: #C5C5C6;
    font-size: 1.2em;
    transition: background-color 0.2s ease;
}

.create-project-btn svg {
    margin-right: 10px;
    fill: #FFFFFF;
    transition: fil 0.3s ease;
}

.create-project-btn:hover {
    background-color: #555;
    border-radius: 10px;
}

.create-project-btn:hover svg {
    fill: #CCCCCC;
}

.modal-content, .modal {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    color: white;
}

.modal input[type="text"],
.modal textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #444;
    border: none;
    color: white;
    height: 30px;
}

.modal button {
    background-color: #0F8E42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #0A6829;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    color: white;
}

#projectName,
#projectDescription,
#updateProjectName,
#updateProjectDescription {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

#projectDescription, #updatedProjectDescription{
    background-color: #444;
    border: none;
    color: white;
    height: 100px;
    font-size: 1.2em;
    font-family: 'Helvetica', sans-serif;
}

#projectName, #updatedProjectName{
    background-color: #444;
    border: none;
    color: white;
    height: 30px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Helvetica', sans-serif;
}

button {
    background-color: #212121;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

button {
    background-color: #0F8E42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-spacing {
    margin-top: 10px;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 70px;
    margin-top: 30px;
    display: flex;
    background-color: #2A2C2F;
    border-radius: 5px;
    align-items: center;
}

.progress-bar {
    height: 110%;
    width: 0%;
    background-color: #59595B;
    border-radius: 40px;
    display: flex;
    align-items: center;
    transition: width 0.5s;
}

.progress-bar-text-inside {
    color: #0F8E42;
    font-weight: bold;
    font-size: xx-large;
    margin-left: 10px;
}

.progress-bar-text {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    color: #585858;
    margin-top: 25px;
}


 .account-info {
    color: #909090;
    text-align: left;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 30px;
    border-radius: 10px;
    border: 1px solid #0F8E42;
    background: #212121;
    backdrop-filter: blur(2px);
}

.account-info p {
    margin: 7px 7px;
    line-height: 1.5;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.account-info p:first-child {
    font-size: 0.8em;
    color: #8F9090;
}

.plan-tier {
    font-size: 1.2em;
    color: #909090;
}

.email-address {
    font-size: 1em;
    color: #909090
}

.projects-container {
    font-family: 'Helvetica', Arial, sans-serif;
    color: white;
    background-color: #212121;
    padding: 20px;
}

.time-category {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 10px;
}

.projects-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.projects-list li {
    background-color: #212121;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
}

.projects-list li:hover {
    background-color:#555;
    border-radius: 10px;
}

.projects-list li::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: #bbb;
}

.projects-list li:focus::after,
.projects-list li.active::after {
    display: block;
}

.options-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #21212100;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
}

.options-button:hover {
    color: white;
    font-weight: bold;
    font-size: 1.3em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    background-color: #212121;
    height: auto;
    width: 400px;
    margin: 15% auto;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #212121;
    flex-direction: column;
    top: 0%;
    left: 40%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #B0B0B0;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0px;
}

.modal-title {
    flex-grow: 1;
}

.options-menu {
    position: absolute;
    background: #2C2C2C;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    display:none;
    width:200px;
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
  }

.options-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.options-menu li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    padding: 0px 20px;
    transition: background-color 0.2s ease;

}

.options-menu li svg {
    margin-right: 15px;
    width: 30px;
    height: 30px;
}

.options-menu li:hover {
    background-color: #3c3c3c;
    color: white;
}


.horizontal-line {
    width: 124px;
    height: 2px;
    background-color: #B0B0B0;
    margin-left: 20px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.edit-icon {
    cursor: pointer;
    font-size: 24px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.drop-area {
    height: 200px;
    width: 100%;
    border-radius: 15px;
    border: 3px dashed #B0B0B0;
    background: #59595B;
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.drop-area p {
    color: #FFF;
    font-size: 20px;
    font-style: italic;
    line-height: normal;
}

.content-area {
    position:fixed;
    padding: 0px;
    height: 100%;
    width: 100%;
}

.content-area .controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.thumbnails-container {
    flex-shrink: 0;
    overflow-x: auto;
    width: 200px;
    height: 100px;
    margin-right: 10px;
    padding: 5px
}

.thumbnail.lazyloaded {
    filter: none;
}

.thumbnail.lazy-load-complete {
    filter:none;
}

.thumbnails-container img {
    max-width: 80px;
    max-height: 80px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 10px;
}

.thumbnails-container img:last-child {
    margin-right: 0;
}

.thumbnails-container.loading::before {
    content: "Loading images...";
    display: block;
    text-align: center;
    margin: 10px;
}

.sidebar-right, .image-container {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 20px;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    transition: top 0.5s ease-out, left 0.5s ease-out, width 0.5s ease-out, height 0.5s ease-out;
}

.sidebar-right {
    top: 50%;
    left: 45%;
    transform: translateY(-50%);
}

.image-container {
    top: 50%;
    left: 0%;
    height: 650px;
    width: auto;
    transform: translateY(-50%);
    overflow: hidden;
}

.image-container .static-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    width: auto;
    height: auto;
    transition: transform 0.5s ease; /* Transición suave */
    transform-origin: center; /* Origen del zoom */
}

.separator {
    position: absolute;
    width: 4px;
    height: 30%;
    background-color: #212121;
    left: 41.75%;
    top: 35%;
    border-radius: 10px;
}

#map {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 20px;
}

#calculated-area {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #212121;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}

.top-nav {
    width: auto;
    background-color: #C5C5C6;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
}

.top-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212121;
    text-align: center;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.top-nav a:hover {
    background-color: #ddd;
    color: black;
}

.top-nav a.active {
    background-color: #4CAF50;
    color: white;
}
.top-nav a.logout-button {
    float: right;
    margin-left: auto;
    display: flex;
    width: 70px;
    height: 15px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(0deg, rgba(38, 38, 38, 0.91) 0%, rgba(38, 38, 38, 0.91) 100%), rgba(212, 212, 212, 0.00);
    color: white;
}

.custom-marker {
    position: relative;
    height: 50px; /* o el tamaño que prefieras */
    width: 50px; /* o el tamaño que prefieras */
    cursor: pointer;
}

.outer-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px; /* o el tamaño que prefieras */
    height: 20px; /* o el tamaño que prefieras */
    background-color: #4cac6c; /* color del círculo exterior */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px; /* o el tamaño que prefieras */
    height: 12px; /* o el tamaño que prefieras */
    background-color: #00391a; /* color del círculo interior */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #212121;
    padding: 20px;
    text-align: center;
    font-size: 21px;
  }
 
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-text {
    margin-bottom: 10px;
  }

  .precision {
    color: #8EC742;
 }

 .agricola {
    color: #0F8E42;
 }

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }
    .sidebar-left {
        position: absolute;
        left: -400px;
    }
    .sidebar-left.hide {
        left: 0;
    }
}
