body {
    font-size: 16px;
    /* Otros estilos generales */
}

/* Estilo para resaltar los elementos seleccionados */
.selected {
    border: 2px dashed #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
}

/* Estilo para resaltar los elementos cuando el mouse pasa por encima */
.editable-element:hover {
    border: 2px dashed blue; /* Cambiar borde a azul al pasar el mouse */
    background-color: rgba(0, 0, 255, 0.1); /* Suave azul en el fondo */
}

/* Asegurarse de que el borde verde se mantenga cuando estÃ© seleccionado */
.selected:hover {
    border: 2px dashed #4CAF50; /* Mantener borde verde cuando estÃ© seleccionado */
}

/* Barra lateral de agregar elementos */
#sidebar {
    position: fixed;
    bottom: 4.5rem;
    left: 0;
    width: 11.7rem;
    max-height: 44.5%;
    background-color: #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

/* MenÃº de elementos en una sola fila vertical */
#element-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#element-list button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#element-list button i {
    margin-right: 10px;
}

#element-list button:hover {
    color: #ddd;
}

/* Barra superior de navegador */
#browser-bar {
    background-color: #333;
    height: 40px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
}

#browser-bar button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 16px;
    text-align: center;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
}

/* Ãrea de diseÃ±o visual (sin padding) */
#design-area {
    margin-left: 200px;
    margin-top: 50px;
    background-color: #f0f0f0;
    min-height: 100vh;
    border: 1px solid #ccc;
    position: relative;
    padding: 0;
}

/* Borde visible solo en el Ã¡rea de diseÃ±o para los contenedores */
#design-area .editable-container {
    border: 2px dashed #4CAF50; /* Borde visible solo durante la ediciÃ³n */
    margin: 0;
    padding: 0;
}

/* Estilos del modal para cambiar el tamaÃ±o y estilo del texto */
#textSizeStyleModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 1000;
    width: 300px;
}

#textSizeStyleModal h3 {
    margin-top: 0;
}

#textSizeStyleModal label {
    margin-right: 10px;
}

#textSizeStyleModal input[type="radio"],
#textSizeStyleModal input[type="number"] {
    margin-right: 5px;
}

#textSizeStyleModal button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#textSizeStyleModal button:hover {
    background-color: #45a049;
}

/* Barra de acciones inferior */
#action-bar {
    position: fixed;
    bottom: 0;
    max-width: 95%;
    height: auto;
    background-color: #333;
    display: flex;
    overflow-x: auto;
    align-items: center;
    flex-direction: row;
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
}

#action-bar button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 16px;
    text-align: center;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
}

#action-bar button i {
    font-size: 24px;
}

/* Tooltip para los botones de acciÃ³n */
#action-bar button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1;
}

#action-bar button[data-tooltip]:hover::before

::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Tooltip para los botones de acciÃ³n */
#browser-bar button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1;
}

#browser-bar button[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #373 transparent;
}

/* Estilo para la barra lateral de lista de elementos */
#element-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 11.7rem;
    max-height: 44.5%;
    background-color: #333;
    padding: 10px;
    color: white;
    z-index: 1000;
    overflow-y: auto;
}

#element-sidebar h3 {
    margin-top: 0;
}

#element-sidebar button {
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px; /* Espacio entre Ã­cono y texto */
}

#element-list-sidebar {
    list-style: none;
    padding: 0;
}

#element-list-sidebar li {
    padding: 8px;
    margin-bottom: 5px;
    background-color: #444;
    cursor: pointer;
}

#element-list-sidebar li:hover {
    background-color: #555;
}


#element-list-sidebar button {
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px; /* Espacio entre Ã­cono y texto */
}

#element-list-sidebar button:hover {
    color: #4CAF50; /* Cambiar color del Ã­cono al pasar el mouse */
}

#element-list-sidebar i {
    font-size: 16px; /* TamaÃ±o del Ã­cono */
    margin-right: 5px; /* Espacio entre el Ã­cono y el texto */
}

/* Estilo para resaltar el elemento seleccionado en la lista */
.selected-item {
    background-color: #4CAF50; /* Cambiar el color de fondo para resaltar */
    color: white;
}

#element-sidebar {
    display: none; /* Oculto por defecto */
}

/* Estilo para el botÃ³n de cerrar en la ventana emergente */
#htmlPreview button {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
}

#htmlPreview button:hover {
    background-color: #55a;
    border-radius: 5px;
}

/* Mejoras de estilo para el Ã¡rea de previsualizaciÃ³n */
#htmlContent {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 100%;
    overflow-y: auto;
    font-size: 14px;
}
    
/* Estilos para mÃ³viles (ancho mÃ¡ximo de 480px) */
@media screen and (max-width: 768px) {

    /* Barra lateral de agregar elementos */
    #sidebar {
        position: fixed;
        z-index: 1000;
        top: 3.4rem;
        bottom: auto;
        border: solid 1px #999;
        left: -1px;
        width: 100%;
        max-width: 100%;
        max-height: auto;
        height: auto;
        background-color: #333;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: center;
        flex-direction: row;
        padding: 0 0.5rem 0 0.5rem;
    }

    /* MenÃº de elementos en una sola fila vertical */
    #element-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    }
    
    #element-list button {
        flex-direction: column;
        font-size: 12px;
    }
    
    #element-list i {
        font-size: 18px;
    }

    /* Estilo para la barra lateral de lista de elementos */
    #element-sidebar {
    position: fixed;
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
    width: 11.7rem;
    max-height: 44.5%;
    background-color: #333;
    padding: 0;
    color: white;
    z-index: 1000;
    display: flex;
    ov

erflow-y: auto;
    flex-direction: column-reverse;
    align-items: center;
    }

    /* Barra superior de navegador */
    #browser-bar {
    z-index: 1000;
    width: 100%;
    position: fixed;
    border: 1px solid #999;
    top: 6.7rem;
    right: auto;
    bottom: auto;
    left: -1px;
    height: auto;
    background-color: #333;
    display: flex;
    overflow-x: auto;
    align-items: center;
    flex-direction: row;
    justify-items: auto;
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    white-space: nowrap; /* Evitar que los Ã­tems hagan saltos de lÃ­nea */
    }

    #browser-bar > * {
        margin-right: 1rem; /* Espacio entre los elementos */
        flex-shrink: 0; /* Evitar que los elementos se reduzcan en tamaÃ±o */
    }

    #action-bar {
    position: fixed;
    top: 0;
    bottom: auto;
    right: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    background-color: #333;
    display: flex;
    overflow-x: auto;
    align-items: center;
    flex-direction: row;
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    z-index: 1000;
}

    #design-area {
        margin-left: auto;
        margin-top: auto;
        top: 10rem;
        bottom: 0;
        background-color: #f0f0f0;
        min-height: 77vh;
        max-height: 77vh;
        border: 1px solid #ccc;
        position: relative;
        padding: 0;
    }

}