body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.main-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.main-header nav button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.main-header nav button:hover {
    background-color: #0056b3;
}

.main-container {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar-blocks {
    width: 200px;
    padding: 1rem;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
}

.sidebar-blocks h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.block {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: grab;
    text-align: center;
}

.editor-area {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.email-canvas {
    min-height: 100%;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px dashed #ccc;
    padding: 1rem;
}

.sidebar-style {
    width: 250px;
    padding: 1rem;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
}

.sidebar-style h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

#style-panel label {
    display: block;
    margin-bottom: 0.5rem;
}

#style-panel input, 
#style-panel textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.canvas-block {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    position: relative;
}

.canvas-block.selected {
    border: 2px solid #007bff;
}

.canvas-block.dragging {
    opacity: 0.5;
}

#image-block-toggle {
    cursor: pointer;
}

.image-gallery-sidebar {
    position: fixed;
    left: -270px; /* Oculto fuera de la pantalla */
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 1rem;
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.image-gallery-sidebar.show {
    left: 0; /* Se desliza a la vista */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.gallery-upload {
    margin-bottom: 1rem;
}

.upload-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-btn:hover {
    background-color: #218838;
}

.gallery-content {
    overflow-y: auto;
    height: calc(100% - 110px); /* Ajustado para el nuevo botón */
}

.gallery-image {
    width: 100%;
    margin-bottom: 10px;
    cursor: grab;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.delete-btn:hover {
    background-color: #c82333;
}
