﻿/* Set the dimensions of the map */
html, body, #viewDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

/* Styling the panel */

/* Variables */
:root {
    --panel-opacity: 0.8;
    --panel-padding: 10px;
    --panel-border-color: #ccc;
    --panel-border-width: 1px;
    --panel-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    --logo-opacity: 0; /* 1= no transparency */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size: 12px;
    --button-color: white;
    --button-backgcolor: red;
}

#controlPanel {
    display: flex;
    justify-content: flex-start; /* Alinea los elementos al inicio del contenedor */
    align-items: flex-start; /* Alinea los botones a la izquierda */
    flex-direction: column;
    justify-content: space-between; /* Mantiene la distribución de los elementos */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 300px;
    background-color: rgba(255, 255, 255, var(--panel-opacity));
    border: var(--panel-border-width) solid var(--panel-border-color);
    padding: var(--panel-padding);
    box-shadow: var(--panel-shadow);
    overflow: auto;
    z-index: 100;
    font-family: var(--font-family);
    font-size: var(--font-size);
}

.row {
    display: flex; /* Alinea los elementos en una fila */
    gap: 10px; /* Espacio entre el botón y el ComboBox */
    align-items: center; /* Alinear verticalmente al centro */
    flex-direction: row; /* Asegura que los elementos estén en fila */
}

#logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: auto;
    z-index: 101;
    opacity: 1;
}

p {
    font-family: var(--font-family); 
    font-size: calc(var(--font-size) - 2px); 
    color: #333; 
    margin-top: 2px; 
    margin-bottom: 10px; 
    text-align: left;
}

/* Buttons */
#importProjectBtn,
#selectStage1Btn {
    font-family: var(--font-family); 
    font-size: calc(var(--font-size) - 2px); 
    color: var(--button-color); 
    background-color: var(--button-backgcolor); 
    padding: 5px 5px; 
    border: none;
    border-radius: 5px; 
    cursor: pointer;
    width: 80px; 
    margin-bottom: 0px; /* Separación entre los botones */
    align-self: flex-start; /* Alinear los botones a la izquierda */
}

/* Combobox Stage */
#stageOptionsComboBox {
    font-family: var(--font-family);
    font-size: calc(var(--font-size) - 2px);
    border-radius: 5px;
    color: #333;
    background-color: #f5f5f5;
    width: 150px;
    margin-right: 5px;
    width: auto; /*  ajuste dinámicamente */
}

button, select {
    display: inline-block;
    vertical-align: middle;
}

#multiLineTextbox {
    width: 90%;
    height: 80px; /* Mayor altura para permitir múltiples líneas */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: calc(var(--font-size) - 2px);
    color: #333;
    background-color: #f5f5f5;
    align-self: center;
    margin-top: 20px;
    margin-bottom: 20px;
    resize: none; /* Desactiva el redimensionado manual */
    overflow-y: auto; /* Barra de scroll vertical si es necesario */
    word-wrap: break-word; /* Evita que el texto largo se salga del área visible */
    white-space: pre-wrap; /* Mantiene los saltos de línea y espacios en el texto */
    overflow-wrap: break-word; /* Asegura que las palabras largas se ajusten */
    box-sizing: border-box; /* Hace que el padding esté incluido en el ancho y alto */
}

#footer-text {
    position: absolute;
    bottom: 5px; 
    left: 0; 
    right: 0; 
    margin: 0 auto;
    font-family: var(--font-family);
    font-size: calc(var(--font-size) - 4px);
    text-align: center; 
}
