/* Estilos del botón flotante */
#boomerang-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s;
}

#boomerang-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

#boomerang-btn img {
    width: 40px;
    height: 40px;
}

/* Estilos del modal */
#boomerang-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.boomerang-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.boomerang-hidden {
    display: none !important;
}

.boomerang-close {
    color: #aaa;
    float: right;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
}

.boomerang-close:hover {
    color: #555;
}

/* Encabezado del reporte */
.report-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.report-header h1 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

/* Categorías y prioridades */
.error-categories, .error-priority {
    margin: 15px 0;
}

.error-categories h3, .error-priority h3 {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.error-categories label, .error-priority label {
    margin-right: 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.error-categories input[type="checkbox"], 
.error-priority input[type="radio"] {
    margin: 0 5px 0 0;
}

/* Contenedor del canvas y herramientas */
.canvas-container {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: auto;
    background: #f9f9f9;
    max-height: 70vh;
    text-align: center;
}

#combined-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    margin: 0 auto;
}

.annotation-tools {
    margin: 15px 0;
}

.annotation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.annotation-controls button {
    padding: 6px 12px;
    background: #2a6e4d;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.annotation-controls button:hover {
    background: #e9e9e9;
}

.annotation-controls button.active {
    background: #25D366;
    color: white;
    border-color: #128C7E;
}

.annotation-controls select, 
.annotation-controls input[type="color"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    height: 34px;
}

.annotation-controls input[type="color"] {
    width: 40px;
    padding: 2px;
}

/* Área de descripción y envío */
.report-footer {
    margin-top: 15px;
}

#boomerang-description {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
}

.meta-data {
    display: flex;
    justify-content: space-between;
    align-items: right;
    /* float: right; */
    margin-top: 15px;
}

.meta-data label {
    display: flex;
    align-items: right;
    gap: 5px;

    font-size: 0.9em;
    cursor: pointer;
}

#boomerang-consent {
    margin: 0;
}

#boomerang-submit {
    padding: 10px 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#boomerang-submit:hover {
    background: #128C7E;
}

/* Footer del modal */
.boomerang-modal-content footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .boomerang-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .annotation-controls {
        gap: 8px;
    }
    
    .annotation-controls button {
        padding: 5px 8px;
        font-size: 0.8em;
    }
    
    #boomerang-description {
        min-height: 80px;
    }
    
    .error-categories label, .error-priority label {
        display: block;
        margin: 5px 0;
    }
}

/* Estilos para el campo de email */
.user-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 15px;
}

#boomerang-email {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    width: 100%;
    max-width: 300px;
}

#boomerang-email:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Ajustes para el diseño responsive */
@media (max-width: 600px) {
    .meta-data {
        flex-direction: column;
        align-items: right;
    }
    
    .user-contact {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #boomerang-email {
        max-width: 100%;
    }
    
    #boomerang-submit {
        width: 100%;
    }
}