/* Font declarations */
@font-face {
    font-family: 'Gotham';
    src: url('docs/Gotham/Gotham-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('docs/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('docs/Gotham/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('docs/Gotham/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Gotham', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
    background-image: url('docs/FondoAbejas.svg');
    background-size: 300px;
}

.main-container {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}

/* Toolbar colapsable */
.toolbar-container {
    position: relative;
    z-index: 100;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 150px !important;
}

.toolbar {
    width: 150px;
    height: 100vh;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 150px !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 20px 15px;
    box-sizing: border-box;
    overflow-y: auto;
}

.toolbar.collapsed {
    transform: translateX(-100%);
}

.toolbar-toggle {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 20px;
    height: 40px;
    background-color: transparent;
    background-image: url('docs/FondoAbejas.svg');
    background-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 101;
    transition: right 0.3s ease;
}

.toolbar.collapsed + .toolbar-toggle {
    right: -20px;
    left: 0;
}

.strokes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.tool-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.tool {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.tool:hover {
    transform: scale(1.1);
}

/* Estilos para las herramientas específicas */
.pencil-tool, .marker-tool, .crayon-tool, .highlighter-tool, .pointer-tool, .eraser-tool, .text-tool, .clear-tool, .reset-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pencil-icon {
    width: 45px;
    height: 8px;
    background: linear-gradient(to right, #555 70%, #4169E1 70%);
    position: relative;
    transform: rotate(-45deg);
}

.pencil-icon::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #555;
    right: -6px;
    top: 0px;
}

.marker-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marker-icon {
    width: 42px;
    height: 10px;
    background: linear-gradient(to right, #f9f9f9 60%, #FF0000 60%);
    border: 1px solid #ddd;
    border-radius: 2px;
    transform: rotate(-45deg);
}

.crayon-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crayon-icon {
    width: 42px;
    height: 10px;
    background: linear-gradient(to right, #f9f9f9 60%, #FFD700 60%);
    border: 1px solid #ddd;
    border-radius: 2px;
    transform: rotate(-45deg);
}

.highlighter-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlighter-icon {
    width: 45px;
    height: 15px;
    background: linear-gradient(to right, #f9f9f9 70%, rgba(255, 0, 0, 0.5) 70%);
    border: 1px solid #ddd;
    border-radius: 2px;
}

.pointer-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pointer-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 22px 12px;
    border-color: transparent transparent #333 transparent;
    transform: rotate(-45deg);
}

.stroke {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stroke:hover {
    transform: scale(1.1);
}

/* Estilo para la herramienta de texto */
.text-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.text-tool i {
    font-size: 24px;
    color: #333;
}

.text-tool:hover i {
    color: #007bff;
}

.text-tool.active i {
    color: #007bff;
}

/* Estilo para el input de texto */
.text-input-container {
    position: absolute;
    display: none;
    z-index: 1000;
}

.text-input {
    padding: 5px;
    border: 1px solid #007bff;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    min-width: 100px;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Controles de texto */
.text-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

.text-controls.visible {
    display: flex;
}

.font-size-control {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.font-size-label {
    font-size: 14px;
    margin-right: 10px;
    color: #555;
    min-width: 70px;
}

.font-size-slider {
    width: 100%;
    margin: 0 5px;
}

.font-size-value {
    font-size: 14px;
    color: #555;
    min-width: 30px;
    text-align: right;
}

/* Estilos para el selector de tamaño */
.size-selector {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    width: 85%;
    max-width: 180px;
}

.size-label {
    color: #333;
    font-family: 'Gotham', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.size-option {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    font-family: 'Gotham', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.size-option:hover {
    background: #e8e8e8;
}

.size-option.active {
    background: #007bff;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contenido central */
.content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    height: calc(100vh - 80px); /* Altura total menos el header */
    background: url('docs/FondoAbejas.svg') repeat;
    background-size: 300px;
    opacity: 0.95;
}

/* Contenedores de papel para diferentes tamaños */
.paper-container {
    position: relative;
    width: 40%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 200px !important;
    border-radius: 5px;
}

.paper {
    position: relative;
    width: 100%;
    flex: 1;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 200px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
}

.paper::before {
    display: none;
}

.background-image {
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Canvas de dibujo */
.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    background-color: transparent;
}

/* Contenedor con imágenes apiladas (más pequeño) */
.stacked-images {
    width: 12%;
    height: 85vh;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 150px !important;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
}

.top-image, .bottom-image {
    height: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.top-image img, .bottom-image img {
    max-width: 90%;
    object-fit: contain;
    position: relative;
}

.logo-container, .apicultura-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    height: 35%;
    margin-bottom: 10px;
}

.apicultura-container {
    height: 60%;
}

.svg-image {
    max-height: 100%;
    width: auto;
    max-width: 95%;
}

#apicultura-img {
    max-height: 100%;
    width: auto;
}

.bottom-image {
    height: 48%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding-bottom: 5px;
}

#expo-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: relative;
    margin-bottom: 5px;
}

/* Estilos para herramientas activas */
.tool.active, .stroke.active {
    border: 2px solid #333;
    transform: scale(1.1);
}

/* Estilo para la herramienta borrador */
.eraser-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eraser-tool i {
    font-size: 24px;
    color: #555;
}

/* Estilo para el botón de limpiar */
.clear-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-tool i {
    font-size: 24px;
    color: #d9534f;
}

.clear-tool:hover i {
    color: #c9302c;
}

/* Estilo para el botón de resetear */
.reset-tool {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-tool i {
    font-size: 24px;
    color: #5bc0de;
}

.reset-tool:hover i {
    color: #31b0d5;
}

/* Controles de grosor */
.thickness-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.thickness-label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

.thickness-slider {
    width: 100%;
    margin: 5px 0;
}

.thickness-value {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* Estilos para los botones de acción */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: none;
    border-radius: 12px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1),
                -5px -5px 10px rgba(255, 255, 255, 0.8);
    color: #333;
    cursor: pointer;
    font-family: 'Gotham', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 80px;
    padding: 12px;
    transition: all 0.3s ease;
    width: 85%;
    max-width: 180px;
}

.action-button:hover {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    box-shadow: 7px 7px 14px rgba(0, 0, 0, 0.15),
                -7px -7px 14px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.action-button:active {
    background: linear-gradient(145deg, #e6e6e6, #f5f5f5);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1),
                inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    transform: translateY(0);
}

.action-button i {
    font-size: 24px;
    margin-bottom: 6px;
    color: #007bff;
}

.action-button span {
    font-size: 14px;
    color: #333;
}

/* Estilos para el modal de contacto */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    padding: 30px;
    position: relative;
    width: 90%;
}

.modal-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #333;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 24px;
    margin: 0;
}

.modal-body {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    color: #555;
    display: block;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input {
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    width: 100%;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-button {
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.modal-button.primary {
    background-color: #007bff;
    color: white;
}

.modal-button:hover {
    opacity: 0.9;
}

.modal-button:active {
    transform: scale(0.98);
}

.close-button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close-button:hover {
    color: #333;
}

/* Estilos específicos para diferentes tamaños de imagen */
[data-size-grande] {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Contenedor izquierdo (herramientas) */
.left-container {
    display: flex;
    flex-direction: column;
    width: 15%;
    height: 100%;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 150px !important;
}

/* Contenedor derecho (imágenes apiladas) */
.right-container {
    display: flex;
    flex-direction: column;
    width: 15%;
    height: 100%;
    background-color: transparent !important;
    background-image: url('docs/FondoAbejas.svg') !important;
    background-size: 150px !important;
}
