/* Basic Color Palette */
:root {
    --primary-color: #538136; /* Dark green */
    --secondary-color: #D8C99B; /* Light off-white  */
    --background-color: #F2F5EA; /* Light brown */
    --text-color: #2B2C28; /* Very dark gray */
    --button-primary-color: #704E2E; /* Brown */
    --button-primary-color-hover: #5A3F22; /* Darker Brown for hover */
    --button-secondary-color: #BBC7A4; /* Muted green */
    --button-secondary-color-hover: #A3AF8E; /* Darker Muted green for hover */
    --accent-color: #D6DBD2; /* Light gray */
    --highlight-color: #BF8B67; /* Warm orange */
    --crop-info-container-color: #3a9137;
    --crop-info-box-color: #a15f2f;
}

/* General Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0 10px 10px 10px;
    padding: 0;
}

.header-tight h1 {
    margin-bottom: 10px;
  }
  
.header-tight p {
    margin-top: 0;
}

/* Ion Icon */
ion-icon.custom-icon {
    font-size:32px;
    color:green;
}

/* Navbar Styles */

.navbar {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px; /* Adjust padding as needed */
    width: 100%; /* Ensure it spans the entire viewport */
    position: fixed;
    right: 0;
    z-index: 1500; /* Ensure it's above other content */
}

.logo img {
    height: 50px;  /* Adjust the height as needed */
    width: auto;   /* Maintain aspect ratio */
}

.user-logo img {
    height: 30px;  /* Adjust the height as needed */
    width: auto;   /* Ensure it's a square */
}

.logo {
    margin-left: 20px; /* Adjust margin as needed */
}

.user-logo {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Push user logo to the right */
}
.survey-logos {
    display: flex;
    margin-right: 30px;
}

.survey-logos img {
    width: 40px;
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; /* Add padding to make them look like buttons */
    border-radius: 5px; /* Add border-radius to make them look like buttons */
    background-color: var(--button-secondary-color); /* Button primary color */
    display: inline-block; /* Ensure the padding and background apply properly */
}

.nav-links a:hover {
    background-color: var(--button-secondary-color-hover); /* Darker shade for hover */
}
.nav-links li.active a {
    background-color: var(--primary-color);
    color: white; 
    border: 2px solid var(--button-secondary-color-hover); 
    font-weight: bold; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
}


/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    margin: 0;
    left: 0;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000; 
}
.login-footer {
    background-color: var(--background-color);
    color: var(--primary-color);
    text-align: center;
    margin: 0;
    left: 0;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000; 
}



main {
    padding-top: 60px; /* Adjust to match navbar height */
    padding-bottom: 60px; /* Adjust to match footer height */
    min-height: calc(100vh - 120px); /* Adjust based on navbar and footer height */
}
.main-map {
    height: 730px;
    border-radius:10px;
}

/* Button Styles */
.btn-primary, a.btn-primary {
    background-color: var(--button-primary-color);
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Longer and more rounded primary button, matching the input style */
.long-btn-primary, 
a.long-btn-primary {
    width: 100%;
    background-color: var(--button-primary-color); /* Brown */ /* Keep your theme color */
    color: white !important;                       /* White text */
    padding: 12px 24px;                             /* Bigger padding for a longer button */
    border: none;                                   /* Remove border */
    border-radius: 16px;                            /* More rounded corners */
    cursor: pointer;                                /* Pointer cursor on hover */
    text-decoration: none;                          /* Remove underline for <a> buttons */
    display: inline-block;                          /* Keep inline but allow width & height */
    font-size: 14px;                                 /* Font size similar to the input */
    font-weight: 500;                                /* Slightly bolder text */
    text-align: center;                              /* Ensure text is centered */
    transition: all 0.3s ease;                       /* Smooth hover transition */
    box-sizing: border-box;      /* ✅ Prevent overflow caused by padding/border */
}

/* Hover state (similar to input hover) */
.long-btn-primary:hover, 
a.long-btn-primary:hover {
    background-color: var(--button-primary-color-hover); /* Slightly darker blue for hover */
}

/* Focus state (similar to input focus) */
.long-btn-primary:focus, 
a.long-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4); /* Blue glow like the input */
}

.btn-primary:hover {
    background-color: var(--button-primary-color-hover); /* Darker shade for hover */
}

.btn-role, a.btn-role {
    background-color: gray;
    color: black !important;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-role:hover, .btn-role.selected {
    background-color: green; /* Darker shade for hover */
}

.btn-secondary {
    background-color: var(--button-secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--button-secondary-color-hover); /* Darker shade for hover */
}
/* Stop Button Styles */
.btn-stop {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold; /* To emphasize the "stop" action */
}
.btn-pause {
    background-color: #ee992b; 
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold; 
}
.btn-resume {
    background-color: green; 
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold; 
}
.btn-abort {
    background-color: #ff4d4d ;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold; 
}

.btn-stop:hover {
    background-color: #cc0000; /* Darker red for hover effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a slight shadow on hover */
}
/* Layer Toggle Button */
.btn-layer {
    background-color: #f0f0f0; /* Neutral background */
    color: #333; /* Dark text for readability */
    padding: 8px 16px; /* Comfortable padding */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition for hover */
}

.btn-layer:hover {
    background-color: #e6e6e6; /* Slightly darker on hover */
    border-color: #999; /* Darker border on hover */
}

.btn-layer.active {
    background-color: #4caf50; /* Green to indicate active state */
    color: white; /* White text for active state */
    border-color: #45a049; /* Match active green */
}

/* Accent and Highlight Styles */
.accent {
    color: var(--accent-color);
}

.highlight {
    color: var(--highlight-color);
    background-color: var(--accent-color); /* Optional: Add background for more emphasis */
    padding: 5px; /* Optional: Add padding for more emphasis */
    font-size: 1.2em; 
    border-radius: 3px; /* Optional: Add rounded corners */
}

/* Example Usage */
.card {
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert {
    background-color: var(--highlight-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Required Field Styles */
.required {
    color: red;
}
  .unconfirmed {
    font-style: italic;
    color: gray;
  }

/* Locations section */
/* Farm List */
#locations-container {
    min-height: calc(100vh - 160px);
    box-sizing: border-box;
}
.layout-1 {
    display: grid;
    grid-template-columns: 1fr;  
    grid-template-rows: 1fr;  
}

.layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr; 
    gap: 1rem;
}

.layout-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: 1fr; 
    gap: 1rem;
}

.layout-4 {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    grid-template-rows: 1fr 1fr; 
    gap: 1rem;
}

.layout-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: 1fr 1fr;      
    gap: 1rem;
}

.location-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 1rem;
    background-color: var(--background-color);
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    display: block; 
}

.location-card-map {
    flex: 1;               
    width: 100%;            
    height: 100%;          
}

.location-title {
    position: absolute;
    top: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    color: white;
    background-color: var(--button-secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
}

/* Location view */
.layout-location-container {
    display: grid;
    margin-top: 20px;
    height: 82vh;
    width: 100%;
    gap:10px;
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
    grid-template-areas: 
      "location-data location-map";
}
.location-data {
    grid-area: location-data;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
}
.location-data-title {
    display: flex;
    align-items: center;       
    gap:10px;
    margin-top:0px;
}
.location-data-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

.location-map {
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegúrate de que el contenedor tenga altura definida */
    grid-area: location-map;
    margin-right: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
}
.location-childs {
    grid-area: location-childs;
    margin-right: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
}


/* Crops */

/* Main container */
#addCrop {
    display: flex; /* Flexbox to split into columns */
    justify-content: space-between; /* Space between elements */
    align-items: flex-start; /* Align elements at the top vertically */
    gap: 100px; /* Spacing between the form and the map */
    margin: 10px; /* Spacing around the container */
}

/* Form */
#cropForm {
    width: 40%; /* Takes half the width */
    max-width: 600px; /* Maximum width */
}

/* Map */
#addCropMap {
    width: 60%; /* Takes half the width */
    height: 700px; /* Fixed height for the map */
    border: 1px solid #ccc; /* Border around the map */
    border-radius: 15px; /* Rounded corners */
    background-color: #f0f0f0; /* Background color if the map doesn't load */
}

.add-activity,
.add-crop {
    display: flex; /* Flexbox to split into columns */
    justify-content: space-between; /* Space between elements */
    align-items: flex-start; /* Align elements at the top vertically */
    gap: 20px; /* Spacing between the form and the map */
    margin: 10px; /* Spacing around the container */
}

.add-form {
    width: 40%; /* Takes half the width */
    max-width: 700px; /* Maximum width */
}
.add-form-map{
    width: 60%; /* Takes half the width */
    height: 700px; /* Fixed height for the map */
    border: 1px solid #ccc; /* Border around the map */
    border-radius: 15px; /* Rounded corners */
    background-color: #f0f0f0; /* Background color if the map doesn't load */
}

.form-field__label {
    font-weight: 600;
}
.form-field__input {
    flex: 1;
}
/* Form selects */
#farmSelect,
#plotSelect,
#cropSelect,
#cropTypeSelect,
#varietySelect,
#nameInput,
#plannedPlantingSelect,
#plannedHarvestSelect,
#cropArrangementSelect,
#batchSelect,
#destinationSelect,
#activityTypeSelect,
#plannedStartSelect,
#plannedEndSelect,
#recurrencySelect {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
select.add-option-available option:last-child {
    color: #a52626;
    font-style: italic;
    background-color: #f8f9fa;
}
.vertical {
    display:flex;
    flex-direction: column;
    width: 100%;
}

#addCropTypeContainer,
#addVarietyContainer {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content; /* ← Esto fuerza el ancho al contenido */
}

#addCropTypeContainer .form-field__input input,
#addVarietyContainer .form-field__input input {
    width: 160px;
    padding: 3px 6px;
    font-size: 13px;
}

#addCropTypeContainer .btn,
#addVarietyContainer .btn {
    white-space: nowrap;
}
.select2-container--default .select2-selection--multiple {
    min-height: 30px !important;    
    max-height: 35px !important;    
    overflow-y: auto !important;   
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 70px !important;    
    overflow-y: auto !important;    
}

.select2-container {
    width: 100% !important;
    min-width: 200px !important;
}

.select2-search--inline .select2-search__field {
    min-width: 150px !important;
}
.form-field__checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.form-field__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: green; 
}
.form-field__content {
    display: flex;
    align-items: center;
    gap: 18px; 
    margin-bottom: 5px;

    transition: all 0.8s ease-in-out;
    opacity: 1;
    overflow: hidden;
}
.form-optional-field__content {
    display: flex;
    align-items: center;
    gap: 18px; 
    margin-bottom: 5px;

    transition: all 0.8s ease-in-out;
    opacity: 1;
    overflow: hidden;
}

.form-field__content.is-hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none; 
}

/* Delete margin for button */
.form-field__content:last-child {
    margin-bottom: 0;
}
.form-optional {
    transition: all 0.8s ease-in-out;
    opacity: 1;
    overflow: hidden;
    background-color: rgb(229, 194, 128);
    border: 1px solid orange;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 5px;
}
.form-optional.is-hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none; 
}

.form-field__status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
}

.form-field__extra-options{
    display:flex;
    gap:10px;
    align-items: center;
    margin-bottom: 12px;
}
.form-field__label-option {
    font-weight: 400;
}

.form-field__button {
    width: 30px;
    height: 30px;
    border: 2px solid orange;
    background: white;
    color: orange;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.8s ease;
}

.form-field__button.pressed {
    transform: rotate(180deg); 
}

.form-field__status-indicator.completed {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.location-info-container{
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    margin-left:40px;
}

.crop-info-container,
.activity-info-container {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.progress-container {
    background-color: var(--accent-color); 
    border-radius: 5px; 
    height: 20px; 
    position: relative;
    overflow: hidden;
    flex: 1; 
}

.progress-bar {
    background-color: orange;
    height: 100%;
    width: 0; 
    position: absolute;
    left: 0;
    top: 0;
}

.progress-bar.is-complete {
    background-color: green; 
  }

.info-container {
    display: flex;               
    justify-content: center;     
    align-items: center;         
    gap: 15%;
    margin-top: 10px;            
}

.info-container div {
    text-align: center;         
}
.parent-link {
    color: var(--button-primary-color);
    text-decoration: underline;
    font-weight: bold;
}
.location-parent {
    font-size: 0.8em;
    color: #777;
}
.crop-link,
.activity-link {
    color: var(--button-primary-color);
    font-size: 1.2em; 
    border-radius: 3px; /* Optional: Add rounded corners */
    text-decoration: underline;
    font-weight: bold;
}


.custom-popup .crop-link{
    color: var(--button-primary-color);
    font-size: 16px; 
    border-radius: 3px; /* Optional: Add rounded corners */
    text-decoration: underline;
    font-weight: bold;
}
.custom-popup .title .crop-link {
    font-size: 22px; 
}

.crop-link:hover,
.activity-link:hover {
    color: var(--button-primary-color-hover)
}

/* Same as crop and activity link without underline decoration */
.highlight-3 {
    color: var(--button-primary-color);
    font-size: 1.2em; 
    border-radius: 3px; /* Optional: Add rounded corners */
    text-decoration: none;
    font-weight: bold;
}

/* Active objects */
.ACTIVE-crop,
.IN_PROGRESS-activity,
.ON_EXECUTION-mission {
    color: orange; 
    font-weight: bold;
}
/* Paused objects */
.PAUSED-activity,
.SELF_PAUSED-mission,
.USER_PAUSED-mission {
    color: rgb(255, 123, 0);
    font-weight: bold;
}

/* Text blink animation */
  @keyframes textBlink {
    0%, 100% {
      color: rgba(255, 255, 255, 1); /* Fully visible */
    }
    50% {
      color: rgba(255, 255, 255, 0.3); /* Partially faded */
    }
  }
/* Wagus blink animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

@keyframes blinkWithBackground {
    0%, 100% { 
        opacity: 1;
        background-color: white;
    }
    50% { 
        opacity: 0.5;
        background-color: black;
    }
}

.blinking-icon {
    animation: blink 1s infinite;
}

/* Aborted objects */
.ABORTED-crop,
.ABORTED-activity,
.EXPIRED-activity,
.SELF_ABORTED-mission,
.USER_ABORTED-mission,
.REJECTED-mission,
.ERROR-mission,
.BRINGUP_ERROR-rover,
.ERROR_HANDLING-rover,
.ALARM-rover {
    color: red;
    font-weight: bold;
}
.BRINGUP-rover {
    color:white;
    font-weight: bold;
}
.ON_MISSION-rover {
    color : blue;
    font-weight: bold;
}
.MANUAL-rover {
    color:purple;
    font-weight: bold;

}
.BATTERY_CRITICAL-rover {
    color:rgb(138, 138, 4);
    font-weight: bold;
}
.OPERATOR_NEEDED-rover {
    color:orange;
    font-weight: bold;
}
.PENDING-activity {
    color: rgb(134, 58, 4);
    font-weight: bold;
}

.COMPLETED-crop,
.COMPLETED-activity,
.FINISHED-mission,
.IDLE-rover {
    color: green;
    font-weight: bold;
}

.LOCKED-rover{
    color: rgb(228, 228, 0);
    font-weight: bold;
}

.PLANNED-crop,
.SCHEDULED-activity,
.RESCHEDULED-activity,
.ASSIGNED-mission,
.SENT-mission,
.RECEIVED-mission,
.ACCEPTED-mission {
    color: black; 
    font-weight: bold;
}
/* Inputs */

/* Base style for any input with this class */
.standart-input {
    width: 100%;                /* Make input take full width of its container */
    padding: 10px 12px;          /* Inner spacing: 10px top/bottom, 12px left/right */
    background-color: #f3f6f9;   /* Default background color */
    border: 1px solid #ccc;      /* Light gray border */
    border-radius: 8px;          /* Rounded corners (8px radius) */
    font-size: 14px;             /* Text size */
    color: #333;                 /* Text color */
    outline: none;               /* Remove default browser focus outline */
    transition: all 0.3s ease;   /* Smooth transition for color/border changes */
    box-sizing: border-box;      /* Prevent overflow caused by padding/border */
}

/* Placeholder text style (shown when input is empty) */
.standart-input::placeholder {
    color: #888;                 /* Light gray placeholder text */
}

/* Hover state (when mouse is over the input) */
.standart-input:hover {
    background-color: #eaf0f5;   /* Slightly darker background on hover */
    border-color: #999;          /* Darker border color on hover */
}

/* Focus state (when user clicks inside and is typing) */
.standart-input:focus {
    background-color: #fff;      /* White background while typing */
    border-color: var(--primary-color);       /* Primary color border while typing */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4); /* Blue glow around the input */
}

/* Modals */
.UNDEFINED-mission {
    color: gray;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-login-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--accent-color);
    width: 25%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--accent-color);
    width: 40%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-planning-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--accent-color);
    width: 10%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin: 10px -10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Styles for activities*/

.from-to-container{
    display:flex;
    align-items: center;
    gap:10px;
}

.is-hidden {
    display: none !important;
}

.planned-start-container {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
}

.planned-start-field {
    flex: 1; 
}

.planned-start-asap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; 
}

@keyframes expand {
    from {
        max-height: 0;
    }
    to {
        max-height: 500px;
    }
}

@keyframes collapse {
    from {
        max-height: 500px;
    }
    to {
        max-height: 0;
    }
}
.box-container {
    max-height: 500px;
    overflow-y: auto;
}
.box-container.expanding {
    animation: expand 2s ease forwards;
}
.box-container.collapsing {
    animation: collapse 1s ease forwards;
}

.beds-list {
    max-height: 200px; /* Set a maximum height */
    overflow-y: auto;  /* Enable vertical scrolling */
}

.beds-list.expanding {
    animation: expand 2s ease forwards;
}

.beds-list.collapsing {
    animation: collapse 1s ease forwards;
}
/* Toggle Button */
.toggle-button {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.toggle-button-object {
    padding: 5px 10px;
    background-color: var(--background-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.toggle-button:hover {
    background-color: green;
}
strong {
    font-weight: bold;
}

.rover-object-mission {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    padding: 10px;
    border-radius: 5px;
}
.missions-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
}

.mission-detail-box.expanding {
    animation: expand 2s ease forwards;
}
.mission-detail-box.collapsing {
    animation: collapse 1s ease forwards;
}

.rover-object-mission, .object-item {
    flex: 0 0 250px;
}

.button-wrapper {
    display: flex;
    gap: 5px;
}

.active-crops-wrapper {
    max-height: 250px;            
    overflow-y: auto;        
    overflow-x: hidden;
}
.rover-objects-wrapper {
    max-height: 120px;            
    overflow-y: auto;        
    overflow-x: hidden;
}
.farm-objects-wrapper {
    max-height: 180px;            
    overflow-y: auto;        
    overflow-x: hidden;
}

.field-objects-wrapper {
    max-height: 300px;            
    overflow-y: auto;        
    overflow-x: hidden;
}

.plot-objects-wrapper {
    max-height: 110px;            
    overflow-y: auto;        
    overflow-x: hidden;
}

.info-header {
    display:flex;
    align-items: center;
    gap:10px;
}
.location-box {
    display:flex;
    align-items: center;
    gap:10px;

}
.location-info-box {
    background-color:var(--background-color);
    display: flex;
    align-items: center;
    gap:20px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.info-box {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.info-location-box {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.info-box .highlight {
    color: var(--highlight-color);
    font-weight: bold;
}

.info-container-act {
    display: flex;               
    justify-content: center;     
    align-items: center;         
    gap: 5%;
    margin-top: 5px;            
}
.row-list-content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;  /* Allow new elements on next line */
    gap: 10px; /
}
.object-item {
    flex: 0 0 220px; /* Fixed size 220px */
}
.object-item-time {
    flex: 0 0 300px; /* Fixed size 300px */
}
.object-location-item{
    flex: 0 0 180px;
}
.object-location-time-item{
    flex: 0 0 230px;
}

.info-container-act div {
    text-align: center;         
}

.highlight-2 {
    display: inline-block;
    color: var(--text-color);
    background-color: var(--button-secondary-color); /* Optional: Add background for more emphasis */
    padding: 5px 10px; /* Optional: Add padding for more emphasis */
    font-size: 1.2em; 
    border-radius: 3px; /* Optional: Add rounded corners */
    text-decoration: none;
    font-weight: bold;
}

.hidden {
    display: none;
    opacity: 0;
}

.visible {
    display: block;
    opacity: 1;
}
.layout-container {
    display: grid;
    grid-template-columns: 2fr 3fr; 
    grid-template-rows: auto auto 1fr; 
    gap: 10px; 
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

.activity-detail-container {
    grid-column: 1 / 2;
    grid-row: 1 / 2; 
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
    overflow-y: auto;
}

.progress-container {
    grid-column: 2 / 3; 
    grid-row: 1 / 4; 
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
    overflow-y: auto;
    height: 80%;
}

.map-container {
    grid-column: 1 / 2; 
    grid-row: 3 / 4; 
    border-radius: 10px;
    background-color: var(--background-color);
    height: 70%;
}

#layer-selection-form {
    grid-column: 1 / 2; 
    grid-row: 2 / 3; 
    width: fit-content;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background-color: var(--background-color);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
/*
.header h2 {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.header a {
    display: inline-block;
    margin-left: 10px;
}
*/
.delete-activity-type {
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.custom-popup {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 10px;
    color: var(--background-color);
    border-radius: 5px;
    padding: 10px;
    background-color:white;
    font-family: Arial, sans-serif;
    font-size:16px;
    width: max-content;
}

.custom-popup p {
    margin: 0;
    padding: 0;
}


.custom-popup .title {
    align-self: center; 
    font-size: 22px;
    text-align: center; 
    color: var(--text-color);
    font-weight: bold;
    width: 100%; 
    margin-bottom: 5px;
}

.custom-popup .subtitle {
    align-self: center; 
    font-size: 19px;
    text-align: center; 
    color: var(--text-color);
    font-weight: bold;
    width: 100%; 
    margin-bottom: 5px;
}
.pop-up-label {
    color: var(--text-color); 
    font-weight: bold; 
}
.pop-up-value {
    color:var(--text-color); 
}


/* Footer with divider and icon */
.popup-footer {
    position: relative;
}

/* Divider line with flexbox */
.popup-divider {
    display: flex; /* Aligns the elements horizontally */
    justify-content: space-between; /* Pushes elements to the edges */
    align-items: center; /* Centers elements vertically */
    border-top: 1px solid #ccc; /* Creates the divider line */
    margin: 10px auto;
    padding-top: 10px; /* Adds space between the line and the buttons */
    width: 100%; /* Ensures the divider spans the full width */
}
/* Styles for the Delete button */
.delete-icon {
    display: flex; /* Ensures it participates in the flexbox layout */
    align-items: center; /* Centers the icon vertically */
    font-size: 16px; /* Adjusts the icon size */
    color: red; /* Sets the icon color to red */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
    margin-left: 5px; /* Pushes the icon to the right edge */
}

.delete-icon:hover {
    color: darkred; /* Changes the color when hovered */
}
.edit-icon {
    display: flex; /* Ensures it participates in the flexbox layout */
    align-items: center; /* Centers the icon vertically */
    font-size: 20px; /* Adjusts the icon size */
    color: black; /* Sets the icon color to red */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
    margin-left: 5px; /* Pushes the icon to the right edge */
}
.add-icon {
    display: flex; /* Ensures it participates in the flexbox layout */
    align-items: center; /* Centers the icon vertically */
    font-size: 20px; /* Adjusts the icon size */
    color: black; /* Sets the icon color to red */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
    margin-left: 5px; /* Pushes the icon to the right edge */
}
.locked-icon {
    display:flex;
    align-items: start;
    font-size: 20px;
    color: black;
    cursor: pointer;
}
.unlocked-icon {
    display:flex;
    align-items: start;
    font-size: 20px;
    color: black;
    cursor: pointer;
}
/* Modal Overlay */
.loading-overlay {
    position: absolute;     
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden; /* Default: Hidden */
}

/* Loading message */
.loading-message {
    background: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/* Tooltip style */
.tooltip {
    position: absolute;
    background: #444;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
}

/* Tooltip arrow */
.tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px; /* Moves the arrow to the left */
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #444 transparent transparent;
}
/* Login messages */
.messages {
    margin: 10px 0;
    padding: 10px;
    text-align: center;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.alert-error {
    background-color: #ffdddd;
    color: #a94442;
    border: 1px solid #a94442;
    display: block; 
    margin-bottom: 5px;
}

.alert-success {
    background-color: #ddffdd;
    color: #3c763d;
    border: 1px solid #3c763d;
}
#bedSelect + .select2-container {
    margin-left: 0px !important;
    margin-bottom: 10px;
}

/* Planning Gant */
  
/* Row crop object */
.ganttCrop {
    height: 58px !important;
    line-height: 58px !important;
    display:flex;
    align-items: center;
    background-color: var(--secondary-color) !important;  /* Dark Brown */
    color: black !important;               /* Visible */
    border: 1px solid black !important;  /* Darker brown */
}

/* Plot name */
.row.name {
    background-color: var(--background-color) !important;
    height: 60px !important;
    line-height: 60px !important;
    display: flex;
    align-items: center;
}

/* Rows */
.row.day.wd,
.row.date.wd,
.row.month,
.row.year,
.row.spacer,
.navigate {
    background-color: var(--background-color) !important;
}

/* Account */
.admin-accounts-header {
    display: flex;
    gap:10px;
    align-items: center;
}

#users-farms-roles-matrix {
    border-radius: 10px;
    border: 2px solid black;
    border-collapse: collapse;
}

#users-farms-roles-matrix th,
#users-farms-roles-matrix td {
    border-radius: 10px;
    border: 1px solid black;
    padding: 12px;
}

/* Tutorial */
.tutorial-column.account {
    flex: 0 0 auto;        
    width: 590px !important;
    height: 240px !important;
    justify-content: center;
    align-items: center;
  }
.tutorial-permission-legend{
    text-align: left;
    width: 590px !important;
    padding: 10px 0 0 10px; 
    margin: 0;            
}
.tutorial-permission-legend  p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}
.role-permissions-matrix {
    display:flex;
    justify-content: space-between;
    border: 3px solid black;
    border-radius: 10px;
}
.matrix-column {
    display:flex;
    flex-direction: column;
    margin-top:20px;
}

.matrix-cell.full-access {
    color: green; 
    font-weight: bold;
}
.matrix-cell.view-only {
    color: orange; 
    font-weight: bold;
}
.matrix-cell.no-access {
    color: red; 
    font-weight: bold;
}

.matrix-column.first {
    margin-left:20px;
}
.matrix-column.last {
    margin-right:20px;
}
.matrix-cell.title {
    font-weight: bold;
}
.matrix-cell.header {
    margin-top:10px;
}

.matrix-cell {
    height:30px;
}

#tutorial-modal {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: 819px;
    background-color: #5381364D;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.tutorial-title {
    font-weight: 900;
    font-size: 24px;
    color:  #1F1F1F;  
}

.tutorial-subtitle {
    margin-top:0px;
    font-size: 20px;
    font-weight: 600;
    color:  #1F1F1F;  
}
.tutorial-description {
    margin: 0;                 
    padding: 2px 0;            
    font-size: 18px;           
    line-height: 1.4;          
    color: #1F1F1F;               
}

.tutorial-modal-content {
    position: relative;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    max-width: 1200px;
    width: 80%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;      

  }
  
  .close-tutorial-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
  }
  
  .close-btn:hover {
    color: red;
  }
  .tutorial-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .tutorial-rows {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
  }
  .tutorial-row {
    flex: 1;
    min-width: 200px;
    width: 300px;
    text-align: center;
    justify-content: center;   /* Horizontal */
    align-items: center;       /* Vertical */
    border-radius: 5px;
  }
  
  .tutorial-column {
    flex: 1;
    min-width: 50px;
    text-align: center;
  }

  .tutorial-row.field {
    background-color: rgba(41, 192, 41, 0.7);
  }
  .tutorial-row.plot {
    background-color: rgba(197, 10, 10, 0.7);
  }
  .tutorial-row.bed {
    background-color: rgb(250, 162, 0, 0.7);
  }

  .tutorial-row p.description {
    padding: 0 10px 10px 10px;
  }
  
  .tutorial-row p.title {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
  }
  .tutorial-column p.title {
    align-items: center;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .tutorial-column video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* For browsers that support it */
    max-width: 800px;     
    max-height: 500px;     
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .is-hidden {
    display:none !important;
  }

/* Maximum width for Fungi Slide */
.fungicide-slide { max-width: 1200px; margin: 0 auto; }

/* Three columns */
.three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top:5px;
}

/* Header: Number + Title */
.step-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: #111827; color: #fff;
  font-weight: 700; font-size: 14px;
  flex: 0 0 auto;
}
.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* Separator */
.step-sep {
  height: 2px;
  background: #111827;
  opacity: 0.1;
  margin-bottom: 10px;
}

/* Step body */
.step-body { display: grid; gap: 8px; }
.tutorial-description u { text-underline-offset: 3px; }

/* Preparation List */
.tutorial-ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tutorial-ol li { margin:0 ;}

/* Execution List */
.tutorial-actions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.tutorial-actions li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-weight: 700; padding: 2px 10px; border-radius: 999px;
  border: 1px solid currentColor; background: #fff;
}
.action-text { line-height: 1.4; }

/* Status */
.status-green { color: #16a34a; }
.status-orange { color: #d97706; }
.status-red { color: #dc2626; }

  /* Staff */
.registration-review-header {
    display: flex;
    align-items: center;
    gap:10px;
    margin-bottom:0px;
}
.staff-registration-view{
    overflow-y: auto;
    display:flex;
    flex-direction: column;
    gap:20px;
}

.staff-questionnarie-info{
    display: flex;
    gap:30px;
}
.staff-personal-info{
    display: flex;
    gap:20px;
    margin-top:0px;
}

.staff-account-info{
    width: 500px;
    padding:10px;
    border: 2px solid black;
    border-radius: 10px;
}

.staff-user-info{
    width: 500px;
    padding:10px;
    border: 2px solid black;
    border-radius: 10px;
}
.staff-questionnarie-info{
    display: flex;
    flex-direction: column;
    padding:10px;
    border: 2px solid black;
    border-radius: 10px;
}
.farms-questionnarie-info {
    display:flex;
    gap:30px;
}

/* Register */
.delete-crop-btn {
    margin-bottom: 5px;
}
.registration-process-btns{
    display: flex;
    gap:10px;
}

.registration-pending-status,
.registration-accepted-status,
.registration-rejected-status {
    display: inline-block;
    font-size: 0.75rem;
    line-height: 1;
    padding: 4px 8px;
    margin-left: 12px;
    vertical-align: middle;
    border-radius: 6px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
}

.registration-pending-status {
    background-color: #8B5E3C;  /* fondo marrón cálido */
    color: #FDF6EC;             /* texto beige claro */
    border: 1px solid #5C3B21;  /* borde marrón oscuro */
}

.registration-accepted-status {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.registration-rejected-status {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
 .register-form {
    display: flex;
}
.questionnarie-container{
    width: 50%;
}
.questionnarie-form-row {
    display: grid;
    grid-template-columns: 200px 400px 80px 100px;  /* 4 columns: name, address, workers, delete */
    column-gap: 15px;
    align-items: center;
}
.questionnarie-crop-form-row {
    display: grid;
    grid-template-columns: 150px 150px 150px 100px  100px;  /* 5 columns: name, address, workers, delete */
    align-items: center;
    column-gap: 15px;
}

.farm-questions{
    display: flex;
    flex-direction: column;
}

.crop-type-beta-question {
    display:flex;
    flex-direction: column;
}

.crop-questionnarie-form{
    display: flex;
    flex-direction: column;
}
  
 .verification-buttons{
    display: flex;
    flex-direction: column;
  }
  .unconfirmed {
    font-style: italic;
    color: gray;
  }

  /* Variety */
  .add-variety {
    margin-top:10px;
  }
  .add-variety-btn{
    margin-top:10px;
  }

  .crop-type-object-btns {
    display: flex;
    width: 100%;              
    justify-content: space-between;
    align-items: center;
  }    
  .delete-variety-button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background-color: #ff4d4f;
    color: white;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .delete-variety-button:hover {
    background-color: #d9363e;
  }

/* Onboarding */
.onboarding-header {
    display:flex;
    gap:80px;
}

/* New Add Location 
.add-location{
    display: flex;
    flex-direction: column;
    gap:10px;
}
.add-location-steps {
    display: flex;
    height: 100px;
    gap:10px;
}
.add-location-step-title {
    margin-top:0px;
    margin-bottom: 0px;
}
.add-location-steps > div {
    width: 300px; 
    background-color: rgb(211, 209, 209);
    border: 1px black solid;
    border-radius: 5px;
    padding: 10px;
}
.location-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:2px;
    margin-top:5px;
    position: relative;
}
.location-type-option {
    display: flex;
    justify-content: center;  
    align-items: center;       
    text-align: center;
    font-weight: bold;
    height: 25px;             
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    user-select: none;
}
.add-location-location-type.selected{
    background-color: rgb(82, 165, 82);
}
.location-type-option.selected {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1.4em;
    z-index: 1;
    transition: all 0.5s ease;
}
*/
/* Hide non-selected */
.location-type-option.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transition: all 0.5s ease;
}
/* Farm */
.location-type-option.farm {background-color: rgb(170, 162, 211);}
.location-type-option.farm:hover,
.location-type-option.farm.selected {background-color: blue;}
/* Field */
.location-type-option.field {background-color: rgb(157, 196, 157);}
.location-type-option.field:hover,
.location-type-option.field.selected {background-color: green;}
/* Plot */
.location-type-option.plot {background-color: rgb(216, 135, 135);}
.location-type-option.plot:hover,
.location-type-option.plot.selected {background-color: red;}
/* Bed */
.location-type-option.bed {background-color: rgb(228, 200, 148);}
.location-type-option.bed:hover,
.location-type-option.bed.selected {background-color: orange;}

.add-location-where-parents{
    margin-top:10px;
    display:flex;
    gap:10px;
}
.add-location-parent {
    display: flex;
    flex-direction: column;
}

.label-farm{
    color:blue;
    font-weight: bold;
}
.label-field {
    color:green;
    font-weight: bold;
}
.label-plot{
    color:red;
    font-weight: bold;
}

.location-type-methods {
    margin-top:5px;
    display: flex;
    flex-direction: column;
    height: 40px;
    gap:10px;
  }
  
  .location-type-draw,
  .location-type-file {
    flex: 1; 
    display: flex;
    justify-content: center; 
    align-items: center;     
    border: 1px solid black;
    border-radius: 5px;
    background-color: darkgray;
  }

  /* Location View */
  .location-view-title {
    padding-left: 5px;
    padding-top:5px;
    margin: 0;
  }
  
  .location-details {
    display: flex;
    padding: 5px;
    gap: 5px;
  }
  
  .location-name,
  .location-beds,
  .location-size,
  .location-bed-width {
    display: none;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
  }
  .adjacent-plots{
    display: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  .bed-parallel-method,
  .bed-manual-method {
    display: none;
  }
  
  .bed-parallel-method {
    align-items: center;
    margin-right:5px;
    gap:20px;
  }

  .btn-primary.selected{
    background-color: var(--primary-color); /* Darker shade for hover */
  }

  .location-data {
    position: relative; 
    padding-bottom: 50px; 
  }

 .location-data .bottom-right-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 10px;
 }

 .reset-password-content-container {
    display: flex;               /* Use flexbox layout */
    flex-direction: column;      /* Stack children vertically */
    gap: 10px;                    /* Space between items */
}

.modal-login-content h2 {
    margin-top: 5px;               /* Remove default top margin */
    margin-bottom: 15px;         /* Add consistent space below the title */
    font-size: 22px;             /* Optional: Adjust size to match modal design */
    font-weight: 600;            /* Slightly bold for emphasis */
    color: var(--text-color, #333); /* Use theme text color if defined */
}

/* Log In */
.right-side-login{
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
  
    display: flex;
    flex-direction: column;
    justify-content: flex-start;                    
    align-items: center;
    gap: 24px;
  
    padding-top: clamp(16px, 5vh, 64px);            
  }
  
  .login-logo{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 48px;                            
  }
  
  .agrikola-logo-img{
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 2px solid #fff;
  }

.login-form-container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    gap:30px;
}
.login-form-input,
.login-form-button {
    display: block;
    margin-bottom: 12px;
    width: 300px;
    height: 50px;
    padding: 10px 12px;          /* Inner spacing: 10px top/bottom, 12px left/right */
    background-color: #f3f6f9;   /* Default background color */
    border: 1px solid #ccc;      /* Light gray border */
    border-radius: 8px;          /* Rounded corners (8px radius) */
    font-size: 14px;             /* Text size */
    color: #333;                 /* Text color */
    outline: none;               /* Remove default browser focus outline */
    transition: all 0.3s ease;   /* Smooth transition for color/border changes */
    box-sizing: border-box;      /* Prevent overflow caused by padding/border */
}

.login-form-button {
    color: #ffffff !important;
    font-weight: 500;
    cursor: pointer;     
    border-radius: 25px !important;
    background-color:  var(--button-primary-color);; /* Brown */ /* Keep your theme color */
}
.login-form-button:hover{
    background-color: var(--button-primary-color-hover); /* Slightly darker blue for hover */
}
.login-form-button:focus{
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4); /* Blue glow like the input */
}
.login-form-input:hover{
    background-color: #eaf0f5;   /* Slightly darker background on hover */
    border-color: #999;          /* Darker border color on hover */
}

.login-form-input:focus {
    background-color: #fff;      /* White background while typing */
    border-color: rgba(0, 123, 255, 0.4);  /* Primary color border while typing */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4); /* Blue glow around the input */
}

.login-title-container {
    display: flex;
    justify-content: center;   
    margin-bottom: 10px;       
}

.login-form-title {
    font-size: 40px;           
    font-weight: 700;         
    color: var(--button-primary-color);   
    letter-spacing: 1px;      
}
.login-register-and-password {
    margin-top: 10px;             
    padding-top: 20px;             
    border-top: 1px solid #ccc;   
    display: flex;
    flex-direction: column;
    gap: 10px;                    
    align-items: center;          
}

.login-register-and-password a {
    color: var(--button-primary-color);   
    text-decoration: none;        
    font-size: 18px;
    transition: color 0.3s ease;
}

.login-register-and-password a:hover {
    color: var(--button-primary-color-hover); 
}

.errorlist li {
    color: red;
}
.error-messages-container {
    margin-top:10px;
    margin-bottom:10px;
}
.error-message {
    color:red;
}

.new-user-created {
    color:green;
}

.schedule-table {
    width: 100%;
    max-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin: 0 auto;  
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 10px 12px;
    border: 1px solid #000000;
    text-align: center;
    vertical-align: middle;
  }
  
  .schedule-table thead th {
    background: var(--button-secondary-color);
    font-weight: 600;
  }

  .schedule-table tbody td {
     font-weight: 600;   /* Bold */
     font-size: 1rem;  
  }

  .schedule-table tbody th {
    background: var(--button-secondary-color);    /* PLANNED / ACTUAL */
    font-weight: 600;
    width: 90px;
  }

  .schedule-table tr:hover td {
    background: var(--button-secondary-color-hover);
  }
  
  /* Bordes redondeados bonitos */
  .schedule-table thead th:first-child { border-top-left-radius: 10px; }
  .schedule-table thead th:last-child  { border-top-right-radius: 10px; }
  .schedule-table tbody tr:last-child th:first-child { border-bottom-left-radius: 10px; }
  .schedule-table tbody tr:last-child td:last-child  { border-bottom-right-radius: 10px; }

  /* Crop details */
  /* Layout 50/50 */
.crop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 82vh; /* 82 vh  */
  }
  
  /* Left pane card */
  .crop-detail-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    margin-top:20px;
    background: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 16px;
  }
  
  /* Title centered and large */
  .crop-detail-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0 8px 0;
  }
  
  /* Generic section with divider line */
  .detail-section {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
  }
  .detail-section:first-of-type {
    border-top: none;
  }
  
  .row-split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 50% | 50% */
    align-items: center;
    width: 100%;
    min-height: 44px;               
  }
  
  /* Vertical line */
  .row-split::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000000;            
    transform: translateX(-0.5px); 
  }
  
  /* Center content */
  .row-split > div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;            
    padding: 4px 8px;
  }
  
  .row-split p { margin: 0; }
  
    /* Right column split 40/60 vertically */
    .right-pane {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        height: 100%;
    }

    /* Use the same class name as in HTML: .crop-map */
    .crop-map {
        flex: 0 0 35vh;
        min-height: 0;
    }

    .activities-wrap {
        flex: 0 0 calc(45vh - 8px);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        overflow: auto;
    }

    /* Map must have explicit height */
    .crop-map .crop-map-frame {
        height: 100%;
        border-radius: 12px;
        border: 1px solid #e5e7eb; 
    }

    /* Activities panel styles */
    .activities-wrap {
        border: 1px solid var(--primary-color);
        border-radius: 12px;
        padding: 12px;
        overflow: auto;
    }
  
  
  /* Tiny tweaks inside activities panel */
  .view-switch {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
  }
  
  /* Keep your schedule-table styles (ya los tienes) */
  /* Opcional: añade margen inferior para respirar dentro del card */
  .schedule-table { margin: 4px 0; }
  
  /* Responsive */
  @media (max-width: 1024px) {
    .crop-layout {
      grid-template-columns: 1fr;
      min-height: auto;
    }
    .right-pane {
      min-height: 60dvh; 
    }
  }

  /* Objects shell scrollable */
.objects-shell {
    margin-top:10px;
    max-width: 1834px;
    max-height: 720px;
    border: 1px solid #d9d4c0;
    border-radius: 12px;
    background: var(--secondary-color);
    overflow-y: auto; /* Vertical sroll */
    padding: 12px;
    box-sizing: border-box;
    --col1-base: 680px;
    --col2: 260px;
    --col3: 260px;
    --col4: 260px;  
    --col5: 260px;
  }

  .objects-shell > .block.farm {
    margin-bottom: 14px;
  }

  /* Fixed header */
  .objects-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--background-color);
    align-items: center;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    margin-bottom: 10px;

    --level-offset: 0px;
    display: grid;
    grid-template-columns:
        calc(var(--col1-base) - var(--level-offset))
        var(--col2) var(--col3) var(--col4) var(--col5);
    gap: 12px;                           
  }
  .objects-header > :nth-child(n+2) {
    text-align: center;
  }
  
  /* Shared grid row */
  .grid-row {
    display: grid;
    grid-template-columns:
        calc(var(--col1-base) - var(--level-offset, 0px))
        var(--col2) var(--col3) var(--col4) var(--col5);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin: 8px 0;
  }

    /* Offset */
   .block.farm > summary.grid-row{
    --level-offset: 6px;
   }
  .block.field > summary.grid-row {
    --level-offset: 24px;
   }
   .block.field .plot.grid-row {
    --level-offset: 40px;
   }
  
  /* Column text align center */
  .col.center { text-align: center; }
  .col.object { font-weight: 700; }
  
  .level-2 .object { padding-left: 12px; }
  .block.field .plot.grid-row {
    margin-inline-start: 16px; /* Separation between Field and Plot */
  }
  
  /* Blocks and colors */
  .block.farm   > summary.grid-row { background: #5379a4; color: #f2f2f2; }
  .block.field  > summary.grid-row { background: #478547; color: #f2f2f2; }
  .plot.grid-row { background: #af4645; color: #f2f2f2; }
  
  /* Inner borders to remark hierarchy */
  .block.farm   { border-radius: 14px; padding: 6px; background: rgba(9, 95, 207, 0.3); }
  .block.field  { border-radius: 12px; padding: 6px; margin: 8px 12px; background: rgb(0, 128, 0, 0.4);}
  
  /* Interactions */
  .clickable { cursor: pointer; user-select: none; }
  
  /* Caret */
  summary .caret {
    display: inline-block;
    width: 0; height: 0;
    border-left: 6px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-right: 8px;
    transform: rotate(0deg);
    transition: transform .15s ease;
  }
  details[open] > summary .caret { transform: rotate(90deg); }
  
  /* Delete details marker */
  summary { list-style: none; }
  summary::-webkit-details-marker { display: none; }
  
  /* Title and hyperlink */
  .col.object a,
  .col.center a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  summary:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

  .user-management-form{
    display:flex;
    flex-direction: column;
    gap:10px;
    max-width: 200px;
  }
.user-management-form input, 
.user-management-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

  /* Alarm Message */

  .alarmMessageForm {
    display:flex;
    flex-direction: column;
    gap:5px;
  }